Variables
10 posts tagged with "Variables"
.value
The .value action shows the text value of a variable. It belongs to the variables category within the external area.
Action Syntax
.value $variable
.value "text"
Valid sizes
Examples
// Basic Usage
.value $var
and
The and action hidden for , addon to varset!. It belongs to the variables category within the external area.
Action Syntax
and $variable
and "text"
and 123
and true|false
and 30m
and HH:MM
and YYYY-MM-DD
Valid sizes
Examples
// Basic Usage
and $varname
default
The default action sets a default value for a variable if it does not already exist. It belongs to the variables category within the external area.
Action Syntax
default $variable = "text"
default $variable = 123
default $variable = [file]
default $variable = HH:MM
default $variable = YYYY-MM-DD
default $variable = 30m
default $variable = $variable
default $variable = IT
default $variable = blk
Valid sizes
Examples
// Basic Usage
default $var = "text value"
forget
The forget action forgets / erases a variable from memory. It belongs to the variables category within the external area.
Action Syntax
forget $variable
Valid sizes
Examples
// Basic Usage
forget $varname
remember
The remember action a modifier that forces a read once cache/consulation of a value before a call to the network. It belongs to the variables category within the external area.
Action Syntax
remember
This action takes no parameters and is used as a bare command.
Examples
// Basic Usage
remember
set
The set action explicit set of a variable. It belongs to the variables category within the external area.
Action Syntax
set $variable "text"
set $variable 123
set $variable [file]
set $variable HH:MM
set $variable true|false
set $variable YYYY-MM-DD
set $variable 30m
set $variable $variable
set $variable IT
Valid sizes
Tags
temp
marks the value as a temp variable
set-default
The set-default action sets a default value for a variable if it does not already exist. It belongs to the variables category within the external area.
Action Syntax
set-default $variable "text"
set-default $variable 123
set-default $variable [file]
set-default $variable HH:MM
set-default $variable YYYY-MM-DD
set-default $variable 30m
set-default $variable $variable
set-default $variable IT
Valid sizes
Examples
// Basic Usage
set-default $var "text value"
vardump
The vardump action vardump action (triggered when we have $varname
Action Syntax
This action accepts various parameters. See the examples below for usage patterns.
Valid sizes
Examples
// Basic Usage
vardump
varref
The varref action this is just a demo action. It belongs to the variables category within the external area.
Action Syntax
varref
This action takes no parameters and is used as a bare command.
Description: bare description
Examples
// Basic Usage
varref
varset
The varset action varset. It belongs to the variables category within the external area.
Action Syntax
varset "text"
varset 123
varset [file]
varset HH:MM
varset YYYY-MM-DD
varset 30m
varset $variable
varset IT
varset EXPR
varset blk
Valid sizes
Examples
// Basic Usage
varset "text value"
// Using Variables
// Display dynamic content from variables
varset $othervar