{run}
Sample Usage
{run: time_value={time: LLL}}
{=time_value}
_
Settings
Setting Name Type Description Positional code The code block to run once. General Command Settings trim yes/no/left/right If yes
whitespace is removed before and after the command. If left
, only whitespace to the left is removed. If right
, only whitespace to the right is removed.
Setting Name | Type | Description |
---|---|---|
Positional | code | The code block to run once. |
General Command Settings | ||
trim | yes/no/left/right | If yes whitespace is removed before and after the command. If left , only whitespace to the left is removed. If right , only whitespace to the right is removed. |
{run}
executes a code block once. It is particularly useful for initializing form variables that you want to manually change later. For example
Formulas vs the run command for setting values
{x=10} {run: y=10}
x is set using a formula which keeps the value always set to 10. This prevents editing the text field: {formtext: name=x}
The run command sets the value of y once. It can then be edited: {formtext: name=y}
_
The {run}
command is often used with the {button} to make interactive interfaces.
Learn more about code blocks in the code block reference.