User Tools

Site Tools


commands:zone_commands:select_max

select_max: <value1> | <value2> :: <command1> :: <command2> :: <default>

select_min: <value1> | <value2> :: <command1> :: <command2> :: <default>

These commands allow for more sophisticated branching than the bracket prefix to a single command. A command will be executed based on the largest/smallest value present.

An arbitrary number of values can be used - at least same number of commands must be supplied - or an extra command can be supplied as a default which will be run if none of the values can be parsed as a number.

  • values can be literal numbers or variables
  • commands are the commands that will be executed relating to the largest/smallest value
  • default is an optional command that will be executed if none of the values given can be parsed as a number
commands/zone_commands/select_max.txt · Last modified: by 127.0.0.1