Copyright VirtualSim 2004-2020 - All rights reserved
Choice
A Choice is a Logic object that selects one of the two connectors according to a user defined (C/C++) condition. A Choice is triggered by another object connector or a Transition.
It is used to direct the logical flow.
By default the C/C++ condition returns YES, activating the YES connector.
Code Hints
scen() or S: is a macro that returns a pointer to the Scenario instance that holds the Entity instance that holds the Logic instance that holds the current Choice.
ent() or E: is a macro that returns a pointer to the Entity instance that holds the Logic instance that holds the current Choice.
logk() or L: is a macro that returns a pointer to the Logic instance that holds the current Choice.
group() or G: is a macro that returns a pointer to the current Group, if any, that holds the current Choice. NULL if none.