Examples
Written by: webDOMinator 3 years and 5 months ago
Creating a variable with text in it.
Code
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:myvar=hello
Creating a variable with a numeric value in it.
Code
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:myvar=1
Creating a variable that's set to another variable plus a set number.
Code
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:firstvar=20
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:secondvar=var.firstvar-12
echoQuick Reference for "echo"
Click on command to see examples & comments
Script Level Commands
Usage: echo:statement
Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:var.secondvar
Creating a variable that concatenates text from other variables...
Code
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:firstvar=dog
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:secondvar=cat
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:thirdvar=house
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:sentence=The ^var.firstvar^ is always chasing the ^var.secondvar^ around the ^var.thirdvar
echoQuick Reference for "echo"
Click on command to see examples & comments
Script Level Commands
Usage: echo:statement
Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:var.sentence
Using Browser DOM referencing in variables to set variables to certain properties...
Code
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:realname=dom.div.fullname.innerhtml
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:phone=dom.span.phone.innerhtml
echoQuick Reference for "echo"
Click on command to see examples & comments
Script Level Commands
Usage: echo:statement
Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:Call ^var.realname^ at ^var.phone
More examples later...