EasyManua.ls Logo

Grid MPX - Page 17

Default Icon
20 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
17
| | 17 20 20
Example #3
A bit more complex than the last one but when you break it down, it makes sense
as a prioritised stack. Here we go:
While the flag is being waved/shown, ‘Function 1’ is shown, even if a car is next to
you at that moment, as ‘Function 1’ takes priority over ‘Function 2’.
If the flag is not being waved/sown anymore and while there is a car next to you on
the right side, ‘Function 2’ will be shown.
In the case that neither ‘Function 2’ or ‘Function 1’ are shown, the ‘alwaysOn’ from
‘Function 3’ is shown.
We did it this way to be able to prioritise flags over other sorts of input.
Clear from the last example is that we’re looking at a stack of prioritised functions.
Essentially, each functions does what it says it does. If for example you have an
‘alwaysOn’ in ‘Function 1’, you can fill up Function 2 and 3 however you like, these will
be never be shown due to the top priority given to the ‘alwaysOn’ function.