Flow Actions
Flow actions control how your app moves between screens and makes decisions based on conditions.
Navigation
goto
Jumps to another block:
goto [home]
goto [user-profile]
call
Calls a block and returns:
call [validate-input]
call [calculate-total]
return
Returns from a called block:
return
return $result
Conditional Logic
if/else
Makes decisions based on conditions:
if $age >= 18
.text "Welcome!"
goto [adult-content]
else
.text "Sorry, you must be 18+"
goto [home]
end
switch
Handles multiple conditions:
switch $menu-choice
case "pizza"
goto [pizza-options]
case "burger"
goto [burger-options]
default
goto [main-menu]
end
More content coming soon…