Rule type 2: Button

Learn how to write rules, as well as share and ask questions about rules.
Locked
admin
Site Admin
Posts: 24
Joined: Thu Feb 24, 2022 3:47 pm

Rule type 2: Button

Post by admin »

admin
Site Admin
Posts: 24
Joined: Thu Feb 24, 2022 3:47 pm

Re: Rule type 2: Button

Post by admin »

List of available parameters
?//
Meaning: Annotation, all rule nodes have this parameter.
Valid format: STRING
Default value: NULL

?name:
Meaning: Node name, all rule nodes have this parameter.
Valid format: STRING
Default value: NULL


?event:
Meaning: Trigger event type for mouse or touch screen or external sensor. If it does not match,「#sys.number」will be set to 0.
Valid format: One of the available values.
Available values:
------------------
down: The user presses the button.
up: The user releases the button.
both: 「down」and「up」.
------------------
Default value: both

?layout:
Meaning: Arithmetic expression, the result is written to「#sys.number」. It has various functions, such as being used to determine whether a specified button event matches.
Valid format: Full arithmetic expression that supports variable values.
Available variable values:
------------------
#button.id: The ID of each grid corresponding to the layout. The appropriate「?range:」parameter value must be specified. The default value is 0.
#button.num: The number of IDs of each grid corresponding to the layout. The default value is 0.
#button.x: X coordinate of「layout」if layout is specified, X coordinate of「generate」otherwise. Coordinate values start from 1.
#button.y: Y coordinate of「layout」if layout is specified, Y coordinate of「generate」otherwise. Coordinate values start from 1.
------------------
Default value: 1

?monitor:
Meaning: If the condition is matched, whether to jump from other nodes in the waiting state to the current node.
Valid format: One of the available values.
Available values:
------------------
false: This is the default value.
true: If other nodes specify the appropriate「?nobreak:」parameter value, the jump behavior will be canceled.
------------------
Default value: false

?range:
Meaning: The ID matching range of the corresponding grid of the specified layout.
Valid format: One of the available values.
Available values:
------------------
all: All ID rows. Equivalent to「1-16」.
none: There is no「#button.id」variable in the「?layout:」expression.
NUMBER:A range is also supported, for example,「1」 or「1-16」, etc.
------------------
Default value: none

?nobreak:
Meaning: Prohibit jumping to the specified node type during the current node duration.
Valid format: One of the available values.
Available values:
------------------
button: The specified node type is「Button」.
limit: The specified node type is「Limit」.
both: 「Button」and「Limit」.
------------------
Default value: NULL
admin
Site Admin
Posts: 24
Joined: Thu Feb 24, 2022 3:47 pm

Re: Rule type 2: Button

Post by admin »

Continuous updates
Locked