V4.5
©2015-2019 AUBO.All rights reserved.
144
Switch...Case...Default
➢
Switch...Case...Default is a condition selection command that runs different case program branches by
judging conditions.
➢
Click the blank space on the right of
【
Alias
】
, It will pop up the input box, and user can modify the
command name.
➢
Click the blank space on the right of
【
Input condition
】
, it will pop up the input box for input the
conditional expression. The expression operation follows the Lua language operation rules. When you
run the Switch command, the program will calculate the value of the Input condition expression and
compare with the condition value of the following Case statement. If they are equal, execute the
following program segment in the Case statement. If there is no Case value that satisfies the
condition, then execute Default corresponding program segment.
➢
Note: To determine the authenticity, users can only use true / false, can not use 1/0 instead.
➢
Click
【
Clear
】
to clear the expression.
➢
Click
【
Add Case
】
to add a Case node and form a Switch ... Case combination with the current
Switch node. A Switch can add more than one Case.
➢
Click
【
Add Default
】
to add a Default node. One Switch can only add one Default.
➢
Click
【
Remove
】
to delete the selected Switch, and the corresponding Case and Default of this
switch will also be deleted.
➢
Click
【
Confirm
】
to confirm the configurations and save.
Figure 11-27 switch…case…default command
Summary of Contents for AUBO-i10
Page 1: ...USER MANUAL AUBO i10 CB4 Please read this manual carefully before using the product...
Page 2: ......
Page 10: ...V4 5 2015 2019 AUBO All rights reserved vi...
Page 26: ...V4 5 2015 2019 AUBO All rights reserved 22...
Page 44: ...V4 5 2015 2019 AUBO All rights reserved 40...
Page 56: ...V4 5 2015 2019 AUBO All rights reserved 52...
Page 87: ...V4 5 2015 2019 AUBO All rights reserved 83...
Page 127: ...V4 5 2015 2019 AUBO All rights reserved 123...
Page 161: ...V4 5 2015 2019 AUBO All rights reserved 157 Figure 11 43 script file editor...
Page 179: ......