Define Variables ($) with GAS Functions

Code Example Results
B
b
The independent functional principle
a primary interrelationship between system and/or subsystem technologies
Every letter of the alphabet is replaced by a phrase.
The case of the letter controls capitalizing the first letter of the phrase.
@ the psycholinguist fundamental view of the learning process
The @ works like a letter, but returns a non-sequitur phrase.
` in case of doubt, make it sound convincing
The ` (grave accent) works like a letter, but returns a random saying.
$s=Gen(`)
$s=Case($s,F)
""s.
There is nothing permanent except change.
Make a random saying into a complete sentence.
$p=Gen(N j)
$P=Case($p,C)
Conformational Changes In The Conceptualization Of A Sophisticated Educational Delivery Mechanism
Create a research paper title.
$g="Greetings" Greetings
$b=Buzz
$b=Buzz(C)
$b=Buzz(U)
balanced policy software (BPS)
Total Application Time-phase (TAT)
OPTIONAL MONITORED FLEXIBILITY (OMF)
Buzz returns 2 variables: $B is the word phrase and $b is the acronym.
$g=Image(figure1.png,0)
$g=Image(Cloud.png,1,r)
The figure1.png image with no border will be inserted into the text when $g is used.
The Cloud.png image with a 1 pixel border will align to the right. Use L to align left with text to the right.
$A=Initials($B) BPS (Uses 3 word phrase from $B above)
Creates an acronym from any string of words.
$f=Fname Vickie (Aways returns a female name)
$m=Mname Joseph (Always returns a male name)
$x=Xname Quiana (Randomly picks either a male or female name)
$l=Lname Hess (Returns a last name)
Use above names
in a sentence.
Is Vickie Hess related to Joseph Hess?
$d=Date()
$e=Date($D,S)
April 14, 2021 (Default to Today in Long format)
14 Apr 2021 (Today in Short format)
$D=SetDate(1944,6,6)
$d=Date($D,X)
Tuesday, June 6, 1944
(Extra long format using SetDate(y,m,d) value in $D)
$n=Seq(1)
$a=Seq(abcd))
1, 2, 3, 4, 5, 6, etc. (Sequential numbers each time $n is used
a, b, c, d, a, b, etc. (Cycles through all letters in order.)
$r=Rand
$r=Rand(1000)
$r=Rand(20,30)
$r=Rand(1,100,5)
91 (The default range is 1 to 100.)
265 (The default low value is 1)
20
00027
$z=Repeat("<=>",10) <=><=><=><=><=><=><=><=><=><=>
$A=Acronym LUMP (Returns 1 of 26 predefined acronyms)
$p="&x &l"
$z=Loop($p,1,10)
""$z
$p is the pattern for the output lines.
Loop stores 10 lines of First name and Last name in $z.
The third line displays all 10 lines.
$L=List(Hi,Hey,Hello)
""$L $x
Hello Quiana
Returns list items in random order each time $L is used.
Normally, this would be a list of user defined phrases.
$W=Words($A)
$L="LEARN"
$X=Words($L)
Longitudinal Update Maximizing Protection (LUMP)
Logical Expert Acquisition Radix Notes
$L="LEA+RN"
$X=Words($L)
Large-scale Expert Anecdotal and Radix Notes
Words for an acronym can have an extra word inserted.
$s=State Wyoming (value of $S)
WY (value of $s)
State returns 2 variables: $S is state name and $s is abbreviation.


Variable names are case sensitive ($v and $V are separate variables).
Function names are not case sensitive and can be abbreviated to 3 letters. (Ex: REP for Repeat)