Last week I worked on entering a subnet, this is u...
# two-minute-week
o
Last week I worked on entering a subnet, this is used for condition, match, filter, map etc.. See description under video. (no audio)

https://youtu.be/hWzxG2oeu0E

k
I couldn't understand at all what happened in this video.
s
I believe they wrote the program "`if global->frame = 15 then "Alice" else "42`
they instantiated a predicate object, then showed creating subprograms that here were called "subnet"s for each half of the if, one subgraph produced "15" and the other "Alice"
o
Thanks Stew, that's about it. Note that one subgraph produces 42 the integer and the other "Alice" the string, the result is then of type <int | string>, a variant type of either type. One could also write this as an expression:
global->frame = 15 ? "Alice" : 42
and wrap/unwrap from one to the other.