neva icon indicating copy to clipboard operation
neva copied to clipboard

Message literal (and constant reference probably too) can be used as a trigger/unlocker for deferred connection

Open emil14 opened this issue 3 months ago • 0 comments

Only port should be used at a left side of the -> (...) connection. Constant messages are unconditionally sent in infinite loops by New emitter component.

component Main(start) (stop) {
    nodes { Println, Eq<string>,If,Del}
    :start -> [
        ('neva is cool' -> eq:val),
        ('neva' -> eq:val2)
       ]

       eq:res -> if
        0 -> [('test' -> println -> del), ('other test' -> println -> del)]
       if:then -> ('They match' -> println -> :stop)
       if:else -> ('They do not match' -> println -> :stop)
}

emil14 avatar May 10 '24 20:05 emil14