-
Notifications
You must be signed in to change notification settings - Fork 2
Activity: Decision & Merge Nodes Documentation
stacks0n edited this page Apr 27, 2014
·
3 revisions
Conditionals can be programmed into the auto-generated Ruby code by setting the Guard on ControlFlow objects. Currently, this support is somewhat limited, and the resulting code includes the clauses, as a comment in the code.
Order cannot be preserved when generating the resulting output, however any 'else' clause will be listed last. To specify 'else' conditions, the 'Name' field of the control guard should be set to 'else'. The 'Value' does not matter.
#The activity "ControlGuards" has 7 nodes and 8 control flows
def Priority_Order
#TODO fill in function
end
def Standard_Order
#TODO fill in function
end
def Rush_Order
#TODO fill in function
end
def ControlGuards
#if order == priority
Priority_Order()
#if order == rush
Rush_Order()
#else
Standard_Order()
end