You are viewing archived messages.
Go here to search the history.

Dany 2023-11-30 12:18:14

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

Kartik Agaram 2023-11-30 15:18:43

I couldn't understand at all what happened in this video.

Stew O'Connor 2023-11-30 22:40:54

I believe they wrote the program " if global->frame = 15 then "Alice" else "42

Stew O'Connor 2023-11-30 22:42:32

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"

Dany 2023-12-01 05:20:49

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.