Behavior : Command queue

Author:Rex.Rainbow

Download

Properties

Repeat mode

  • Repeat mode for "action:Next".
    • Options : ["Ring","Ping-pong"]

Activated

  • Enable if you wish this to begin at the start of the layout.
    • Options : ["No","Yes"]

Commands

  • Commands in JSON format

Actions

Add

Action:Set parameter

  • Set parameter.
    • Index ( number or string ) : The index of the parameter to get.
    • Value ( number or string ) : The value of this parameter

Action:Push

  • Push a command with current parameters into back of queue.
    • Name ( string ) : Command name.

Action:Insert at

  • Insert command at specific index.
    • Name ( string ) : Command name.
    • Index ( number ) : Next index, zero-based index.

Clean

Action:Clean

  • Clean all pendding commands

Configure

Action:Set repeat mode

  • Set repeat mode.
    • Mode ( Combo ) : Repeat mode.
      • Options : ["Ring","Ping-pong"]

Load

Action:Load JSON commands

  • Load commands in JSON format.
    • Commands ( string ) : Commands in JSON format

Action:Load CSV commands

  • Load commands in CSV format.
    • Commands ( string ) : Commands in CSV format

Run - Next

Action:Next

  • Run next command, it will trigger "Condition:On command".

Action:Set next index

  • Set next index for "action:Next".
    • Index ( number ) : Next index

Action:Current

  • Run current command, it will trigger "Condition:On command".

Run - Pop

Action:Pop

  • Pop and run a command from front of queue, it will trigger "Condition:On command".

Expressions

JSON

Expression:CmdToString

  • Get commands in JSON string.

Parameter

Expression:Param

  • Get the value of a parameter passed to the command.
    • Index ( number or string ) : The index of the parameter to get.

Queue

Expression:CmdCount

  • Get count of commands, i.e. length of queue.

Expression:LastIndex

  • Get last index of queue.

Run

Expression:CurIndex

  • Get current index of executed command.

Conditions

Command

Condition:On command

  • Triggered when command executing.
    • Name ( string ) : Command name

Parameter

Condition:Compare parameter

  • Compare the value of a parameter in a function call.
    • Index ( number or string ) : The index of the parameter to get.
    • Comparison ( cmp ) : How to compare the function parameter.
    • Value ( number or string ) : The value to compare to.

Condition:Type of parameter

  • Test the type of parameter.
    • Index ( number or string ) : The index of the parameter to get.
    • Type ( Combo ) : The type of value.
      • Options : ["Number","String"]

Queue

Condition:Empty

  • Return true if the queue is empty.

Condition:Last

  • Return true if running last command.

Condition:First

  • Return true if running first command.