Home mm2k6 Help Files Procedures Input Processing - IsEmpty
27 | 05 | 2018
Input Processing - IsEmpty
Article Index
Input Processing
Abs
IsEmpty
PadLeft
StripAnsi
Val
All Pages

@IsEmpty(var name)

Returns a 1 if the variable is empty, otherwise a 0.

   var name - The name of the variable to check.

@Left(text,number of characters)

Left returns a number of characters from the left side of a string.

   text - The text you want to take the left hand portion of. 
   number of characters - Number of characters you want.

@Left(Arithon,3)
Would return the string "Ari". The 3 leftmost characters.

@Len(text)

Len returns the number of characters in a string.

@Len(Arithon)
Would return 7.

@Lower(text)

Lower converts all the letters in the text to lower case.  This can be
useful when comparing items in a list or with an /if.

Examples:
   /if "@Lower($Name)" == "arithon"}

   @InList(Spells,@Lower($1))

@LTrim(text)

LTrim removes any spaces from the left side of a string.

@Math(expression)

Returns the result of a math expression. The works the same way as /math, only
the value is not placed into a variable. See the help on math for more
information.

@Mid(text,start character,number of characters)

Mid returns a portion of a string. You tell mid what character you want to
start at, and how many characters from that point on. Strings are zero based,
so if you want the very first character in a string the start character would
have to be zero.

   text - Text string from which you want to grab a portion. 
   start character - The character index of the first character to get. 
   number of characters - The number of characters to get.

@Mid(Arithon,0,3)
This will get you the same result as using a @Left(Arithon,3). The text "Ari"
would be returned.

@Mid(Arithon,2,4)
Would return the string "itho".