"GE" Snippets


View "Miva Template Language New Array and Sort Example"
<mvt:comment> | | By http://www.scotsscripts.com | </mvt:comment> <mvt:assign name="l.settings:list[1]:name" value="'apples'" /> <mvt:assign name="l.settings:list[1]:kind" value="'mac'" /> <mvt:assign name="l.settings:list[1]:color" value="'a'" /> <mvt:assign name="l.settings:list[2]:name" value="'bananas'" /> <mvt:assign name="l.settings:list[2]:kind" value="'South American'" /> <mvt:assign name="l.settings:list[2]:color" value="'C'" /> <mvt:assign name="l.settings:list[3]:name" value="'orange'" /> <mvt:assign name="l.settings:list[3]:kind" value="'Florida'" /> <mvt:assign name="l.settings:list[3]:color" value="'b'" /> <mvt:assign name="l.settings:list[4]:name" value="'orange'" /> <mvt:assign name="l.settings:list[4]:kind" value="'Michigan'" /> <mvt:assign name="l.settings:list[4]:color" value="'d'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> <hr/> </mvt:foreach> <mvt:comment> | | while loop to create new array and add colorsort field | </mvt:comment> <mvt:assign name="l.elements" value="miva_array_elements(l.settings:list)" /> <mvt:while expr="l.counter LT l.elements"> <mvt:assign name="l.counter" value="l.counter + 1" /> <mvt:assign name="l.struct" value="l.settings:list[l.counter]" /> <mvt:assign name="l.struct:colorsort" value="toupper(l.struct:color)" /> <mvt:assign name="l.success" value="miva_array_insert( l.settings:newlist, l.struct, -1 )" /> </mvt:while> <mvt:comment> | |copy new array to original, sort, and display new list | </mvt:comment> <mvt:assign name="l.settings:list" value="l.settings:newlist" /> <mvt:do file="g.module_library_utilities" name="l.success" value="QuickSortArray(l.settings:list,':colorsort', 1)" /> <h2>After Sort</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> colorSort: &mvt:item:colorSort; <hr/> </mvt:foreach>
 

Miva Template Language New Array and Sort Example

Use Miva Template language to sort an existing array by inserting sort keys into the array structure. This is done by creating a new temporary structure with the sort key (colorsort), and then add it to a new array using miva_array_insert(..). When the loop is done, the new temporary array is then copied back into the original array. In miva_array_insert(...) we use -1 for the array index to force it to add the structure to the next array element. Since we are creating a new array, it will be populated from index 1 to the end. We do it this way because there is no other way to add to array structures in the miva template language. Using brackets when trying to add to existing array structures does not work in the miva template language. http://www.scotsscripts.com
Created: 1496961839
View "Miva Template Language New Array and Sort Example"
<mvt:comment>Example by http://www.scotsscripts.com</mvt:comment> <mvt:assign name="l.settings:list[1]:name" value="'apples'" /> <mvt:assign name="l.settings:list[1]:kind" value="'mac'" /> <mvt:assign name="l.settings:list[1]:color" value="'a'" /> <mvt:assign name="l.settings:list[2]:name" value="'bananas'" /> <mvt:assign name="l.settings:list[2]:kind" value="'South American'" /> <mvt:assign name="l.settings:list[2]:color" value="'C'" /> <mvt:assign name="l.settings:list[3]:name" value="'orange'" /> <mvt:assign name="l.settings:list[3]:kind" value="'Florida'" /> <mvt:assign name="l.settings:list[3]:color" value="'b'" /> <mvt:assign name="l.settings:list[4]:name" value="'orange'" /> <mvt:assign name="l.settings:list[4]:kind" value="'Michigan'" /> <mvt:assign name="l.settings:list[4]:color" value="'d'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> <hr/> </mvt:foreach> <mvt:comment>While loop To Create New Array</mvt:comment> <mvt:assign name="l.elements" value="miva_array_elements(l.settings:list)" /> <mvt:while expr="l.counter LT l.elements"> <mvt:assign name="l.counter" value="l.counter + 1" /> <mvt:assign name="l.struct" value="l.settings:list[l.counter]" /> <mvt:assign name="l.struct:colorsort" value="toupper(l.struct:color)" /> <mvt:assign name="l.success" value="miva_array_insert( l.settings:newlist, l.struct, -1 )" /> </mvt:while> <mvt:comment>copy new array to original array</mvt:comment> <mvt:assign name="l.settings:list" value="l.settings:newlist" /> <mvt:comment>sort original array</mvt:comment> <mvt:do file="g.module_library_utilities" name="l.success" value="QuickSortArray(l.settings:list,':colorsort', 1)" /> <h2>After Sort</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> colorSort: &mvt:item:colorSort; <hr/> </mvt:foreach>
 

Miva Template Language New Array and Sort Example

Use Miva Template language to sort an existing array by inserting sort keys into the array structure. This is done by creating a new temporary structure with the sort key (colorsort), and then add it to a new array using miva_array_insert(..). When the loop is done, the new temporary array is then copied back into the original array. In miva_array_insert(...) we use -1 for the array index to force it to add the structure to the next array element. Since we are creating a new array, it will be populated from index 1 to the end. We do it this way because there is no other way to add to array structures in the miva template language. Using brackets when trying to add to existing array structures does not work in the miva template language. http://www.scotsscripts.com
Created: 1496961811
View "Miva Template Language New Array and Sort Example"
TEST<br><br> <mvt:assign name="l.settings:list[1]:name" value="'apples'" /> <mvt:assign name="l.settings:list[1]:kind" value="'mac'" /> <mvt:assign name="l.settings:list[1]:color" value="'a'" /> <mvt:assign name="l.settings:list[2]:name" value="'bananas'" /> <mvt:assign name="l.settings:list[2]:kind" value="'South American'" /> <mvt:assign name="l.settings:list[2]:color" value="'C'" /> <mvt:assign name="l.settings:list[3]:name" value="'orange'" /> <mvt:assign name="l.settings:list[3]:kind" value="'Florida'" /> <mvt:assign name="l.settings:list[3]:color" value="'b'" /> <mvt:assign name="l.settings:list[4]:name" value="'orange'" /> <mvt:assign name="l.settings:list[4]:kind" value="'Michigan'" /> <mvt:assign name="l.settings:list[4]:color" value="'d'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> <hr/> </mvt:foreach> <mvt:comment>While loop To Create New Array</mvt:comment> <mvt:assign name="l.elements" value="miva_array_elements(l.settings:list)" /> <mvt:while expr="l.counter LT l.elements"> <mvt:assign name="l.counter" value="l.counter + 1" /> <mvt:assign name="l.struct" value="l.settings:list[l.counter]" /> <mvt:assign name="l.struct:colorsort" value="toupper(l.struct:color)" /> <mvt:assign name="l.success" value="miva_array_insert( l.settings:newlist, l.struct, -1 )" /> </mvt:while> <mvt:comment>copy new array to original array</mvt:comment> <mvt:assign name="l.settings:list" value="l.settings:newlist" /> <mvt:comment>sort original array</mvt:comment> <mvt:do file="g.module_library_utilities" name="l.success" value="QuickSortArray(l.settings:list,':colorsort', 1)" /> <h2>After Sort</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> colorSort: &mvt:item:colorSort; <hr/> </mvt:foreach>
 

Miva Template Language New Array and Sort Example

Use Miva Template language to sort an existing array by inserting sort keys into the array structure. This is done by creating a new temporary structure with the sort key (colorsort), and then add it to a new array using miva_array_insert(..). When the loop is done, the new temporary array is then copied back into the original array. In miva_array_insert(...) we use -1 for the array index to force it to add the structure to the next array element. Since we are creating a new array, it will be populated from index 1 to the end. We do it this way because there is no other way to add to array structures in the miva template language. Using brackets when trying to add to existing array structures does not work in the miva template language. http://www.scotsscripts.com
Created: 1496961745
View "Miva Template Language New Array and Sort Example"
TEST<br><br> <mvt:assign name="l.settings:list[1]:name" value="'apples'" /> <mvt:assign name="l.settings:list[1]:kind" value="'mac'" /> <mvt:assign name="l.settings:list[1]:color" value="'a'" /> <mvt:assign name="l.settings:list[2]:name" value="'bananas'" /> <mvt:assign name="l.settings:list[2]:kind" value="'South American'" /> <mvt:assign name="l.settings:list[2]:color" value="'C'" /> <mvt:assign name="l.settings:list[3]:name" value="'orange'" /> <mvt:assign name="l.settings:list[3]:kind" value="'Florida'" /> <mvt:assign name="l.settings:list[3]:color" value="'b'" /> <mvt:assign name="l.settings:list[4]:name" value="'orange'" /> <mvt:assign name="l.settings:list[4]:kind" value="'Michigan'" /> <mvt:assign name="l.settings:list[4]:color" value="'d'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> <hr/> </mvt:foreach> <h3>While loop To Create New Array</h3> <mvt:assign name="l.elements" value="miva_array_elements(l.settings:list)" /> <mvt:while expr="l.counter LT l.elements"> <mvt:assign name="l.counter" value="l.counter + 1" /> <mvt:assign name="l.struct" value="l.settings:list[l.counter]" /> <mvt:assign name="l.struct:colorsort" value="toupper(l.struct:color)" /> <mvt:assign name="l.success" value="miva_array_insert( l.settings:newlist, l.struct, -1 )" /> </mvt:while> <mvt:assign name="l.settings:list" value="l.settings:newlist" /> <mvt:do file="g.module_library_utilities" name="l.success" value="QuickSortArray(l.settings:list,':colorsort', 1)" /> <h2>After Sort</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> colorSort: &mvt:item:colorSort; <hr/> </mvt:foreach>
 
View "Miva Template Language New Array and Sort Example"
TEST<br><br> <mvt:assign name="l.settings:list[1]:name" value="'apples'" /> <mvt:assign name="l.settings:list[1]:kind" value="'mac'" /> <mvt:assign name="l.settings:list[1]:color" value="'a'" /> <mvt:assign name="l.settings:list[2]:name" value="'bananas'" /> <mvt:assign name="l.settings:list[2]:kind" value="'South American'" /> <mvt:assign name="l.settings:list[2]:color" value="'C'" /> <mvt:assign name="l.settings:list[3]:name" value="'orange'" /> <mvt:assign name="l.settings:list[3]:kind" value="'Florida'" /> <mvt:assign name="l.settings:list[3]:color" value="'b'" /> <mvt:assign name="l.settings:list[4]:name" value="'orange'" /> <mvt:assign name="l.settings:list[4]:kind" value="'Michigan'" /> <mvt:assign name="l.settings:list[4]:color" value="'d'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> <hr/> </mvt:foreach> <h3>While loop To Create New Array</h3> <mvt:assign name="l.elements" value="miva_array_elements(l.settings:list)" /> <mvt:while expr="l.counter LT l.elements"> <mvt:assign name="l.counter" value="l.counter + 1" /> <mvt:assign name="l.struct" value="l.settings:list[l.counter]" /> <mvt:assign name="l.struct:colorsort" value="toupper(l.struct:color)" /> <mvt:assign name="l.success" value="miva_array_insert( l.settings:newlist, l.struct, -1 )" /> </mvt:while> <mvt:assign name="l.settings:list" value="l.settings:newlist" /> <mvt:do file="g.module_library_utilities" name="l.success" value="QuickSortArray(l.settings:list,':colorsort', 1)" /> <h2>After Sort</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> colorSort: &mvt:item:colorSort; <hr/> </mvt:foreach>
 

Basket #46923

Usage of QuickSortArray
Created: 1496950718
View "Basket #46923"
<mvt:comment> | | By http://www.scotsscripts.com | </mvt:comment> <mvt:assign name="l.settings:list[1]:name" value="'apples'" /> <mvt:assign name="l.settings:list[1]:kind" value="'mac'" /> <mvt:assign name="l.settings:list[1]:color" value="'a'" /> <mvt:assign name="l.settings:list[2]:name" value="'bananas'" /> <mvt:assign name="l.settings:list[2]:kind" value="'South American'" /> <mvt:assign name="l.settings:list[2]:color" value="'C'" /> <mvt:assign name="l.settings:list[3]:name" value="'orange'" /> <mvt:assign name="l.settings:list[3]:kind" value="'Florida'" /> <mvt:assign name="l.settings:list[3]:color" value="'b'" /> <mvt:assign name="l.settings:list[4]:name" value="'orange'" /> <mvt:assign name="l.settings:list[4]:kind" value="'Michigan'" /> <mvt:assign name="l.settings:list[4]:color" value="'d'" /> <h2>Before</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> <hr/> </mvt:foreach> <mvt:comment> | | while loop to create new array and add colorsort field | </mvt:comment> <mvt:assign name="l.elements" value="miva_array_elements(l.settings:list)" /> <mvt:while expr="l.counter LT l.elements"> <mvt:assign name="l.counter" value="l.counter + 1" /> <mvt:assign name="l.struct" value="l.settings:list[l.counter]" /> <mvt:assign name="l.struct:colorsort" value="toupper(l.struct:color)" /> <mvt:assign name="l.success" value="miva_array_insert( l.settings:newlist, l.struct, -1 )" /> </mvt:while> <mvt:comment> | |copy new array to original, sort, and display new list | </mvt:comment> <mvt:assign name="l.settings:list" value="l.settings:newlist" /> <mvt:do file="g.module_library_utilities" name="l.success" value="QuickSortArray(l.settings:list,':colorsort', -1)" /> <h2>After Sort</h2> <mvt:foreach iterator="item" array="list"> name: &mvt:item:name;<br> kind: &mvt:item:kind;<br> color: &mvt:item:color;<br> colorSort: &mvt:item:colorSort; <hr/> </mvt:foreach>
 
View "MOD examples"
<h2>MivaScript MOD</h2> <p>MivaScript has a built in Modulus operator: <code>MOD</code></p> <mvt:assign name="l.settings:mod" value="1 MOD 3" /> <code>1 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="2 MOD 3" /> <code>2 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="3 MOD 3" /> <code>3 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="4 MOD 3" /> <code>4 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="5 MOD 3" /> <code>5 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="6 MOD 3" /> <code>6 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="7 MOD 3" /> <code>7 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="8 MOD 3" /> <code>8 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="9 MOD 3" /> <code>9 MOD 3</code> = &mvte:mod;<br/><br/> <mvt:assign name="l.settings:mod" value="1 MOD 4" /> <code>1 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="2 MOD 4" /> <code>2 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="3 MOD 4" /> <code>3 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="4 MOD 4" /> <code>4 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="5 MOD 4" /> <code>5 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="6 MOD 4" /> <code>6 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="7 MOD 4" /> <code>7 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="8 MOD 4" /> <code>8 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="9 MOD 4" /> <code>9 MOD 4</code> = &mvte:mod;<br/><br/>
 
View "MOD examples"
<h2>MivaScript MOD</h2> <p>MivaScript has a built in Modulus opperator: <code>MOD</code></p> <mvt:assign name="l.settings:mod" value="1 MOD 3" /> <code>1 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="2 MOD 3" /> <code>2 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="3 MOD 3" /> <code>3 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="4 MOD 3" /> <code>4 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="5 MOD 3" /> <code>5 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="6 MOD 3" /> <code>6 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="7 MOD 3" /> <code>7 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="8 MOD 3" /> <code>8 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="9 MOD 3" /> <code>9 MOD 3</code> = &mvte:mod;<br/><br/> <mvt:assign name="l.settings:mod" value="1 MOD 4" /> <code>1 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="2 MOD 4" /> <code>2 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="3 MOD 4" /> <code>3 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="4 MOD 4" /> <code>4 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="5 MOD 4" /> <code>5 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="6 MOD 4" /> <code>6 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="7 MOD 4" /> <code>7 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="8 MOD 4" /> <code>8 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="9 MOD 4" /> <code>9 MOD 4</code> = &mvte:mod;<br/><br/>
 
View "MOD examples"
<h2>MivaScript MOD</h2> <p>MivaScript has a built in Modulus opperator: <code>MOD</code></p> <mvt:assign name="l.settings:mod" value="1 MOD 3" /> <code>1 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="2 MOD 3" /> <code>2 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="3 MOD 3" /> <code>3 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="4 MOD 3" /> <code>4 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="5 MOD 3" /> <code>5 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="6 MOD 3" /> <code>6 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="7 MOD 3" /> <code>7 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="8 MOD 3" /> <code>8 MOD 3</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="9 MOD 3" /> <code>9 MOD 3</code> = &mvte:mod;<br/><br/> <mvt:assign name="l.settings:mod" value="1 MOD 4" /> <code>1 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="2 MOD 4" /> <code>2 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="3 MOD 4" /> <code>3 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="4 MOD 4" /> <code>4 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="5 MOD 4" /> <code>5 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="6 MOD 4" /> <code>6 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="7 MOD 4" /> <code>7 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="8 MOD 4" /> <code>8 MOD 4</code> = &mvte:mod;<br/> <mvt:assign name="l.settings:mod" value="9 MOD 4" /> <code>9 MOD 4</code> = &mvte:mod;<br/><br/>
 
View "Basket #45052"
<mvt:if expr="slice CIN the whole pie; slice plus all the other slices"> true <mvt:else> false </mvt:if>
 

Basket #18886

Grab the 3 letter extension off of an image file. Could be improved to look for last ',' and grab all after in case of variations like '.jpeg'.
Created: 1473454796
View "Basket #18886"
<mvt:assign name="g.url" value="'http://dev.mcrmedical.com/mm5/graphics/00000001/fak28-MCR-first-aid-kit-front.jpeg'" /> <mvt:assign name="g.extension" value="substring(g.url,(len(g.url)-3),4)" /> &mvt:global:extension;
 

image extension

Grab the 3 letter extension off of an image file. Could be improved to look for last ',' and grab all after in case of variations like '.jpeg'.
Created: 1459875237
View "image extension"
<mvt:assign name="g.url" value="'http://dev.mcrmedical.com/mm5/graphics/00000001/fak28-MCR-first-aid-kit-front.jpg'" /> <mvt:assign name="g.extension" value="substring(g.url,(len(g.url)-3),4)" /> &mvt:global:extension;
 

image extension

Grab the 3 letter extension off of an image file. Could be improved to look for last ',' and grab all after in case of variations like '.jpeg'.
Created: 1459875200
View "image extension"
<mvt:assign name="g.url" value="'http://dev.mcrmedical.com/mm5/graphics/00000001/fak28-MCR-first-aid-kit-front.jpg'" /> <mvt:assign name="g.extension" value="substring(g.url,(len(g.url)-3),4)" /> &mvt:global:extension;
 

MivaScript Operators

 mivascript  operators  NOT  ROUND  CRYPT  MOD  POW  math  string  IN  CIN  EIN  ECIN  EQ  LT  LE  GT  GE  ISNULL  AND  OR
Created: 1456865839
View "MivaScript Operators"
<h1>MivaScript Operator Examples</h1> <h2><a href="http://www.mivascript.com/topic/operators.html">Documentation</a></h2> <h2><a href="http://snippets.miva.com/id/1456864554/latest">snippets.miva.com Examples</a></h2> <h2><code>NOT</code></h2> NOT 0: <mvt:eval expr="NOT 0" /><br> NOT 1: <mvt:eval expr="NOT 1" /><br> NOT '': <mvt:eval expr="NOT ''" /><br> NOT 'foobar': <mvt:eval expr="NOT 'foobar'" /><br> <h2><code>ROUND</code></h2> <mvt:assign name="g.PI" value="3.14159265359" /> g.PI: &mvte:global:PI;<br> g.PI ROUND 0: <mvt:eval expr="g.PI ROUND 0" /><br> g.PI ROUND 1: <mvt:eval expr="g.PI ROUND 1" /><br> g.PI ROUND 2: <mvt:eval expr="g.PI ROUND 2" /><br> g.PI ROUND 3: <mvt:eval expr="g.PI ROUND 3" /><br> <h2><code>CRYPT</code></h2> <mvt:assign name="g.password" value="'open-sesame'" /> g.password: &mvte:global:password;<br> g.password CRYPT 'key': <mvt:eval expr="g.password CRYPT 'key'" /><br> g.password CRYPT 'other-key': <mvt:eval expr="g.password CRYPT 'other-key'" /><br> <h2><code>MOD</code></h2> 3 MOD 3: <mvt:eval expr="3 MOD 3"/><br> 4 MOD 3: <mvt:eval expr="4 MOD 3"/><br> 5 MOD 3: <mvt:eval expr="5 MOD 3"/><br> 6 MOD 3: <mvt:eval expr="6 MOD 3"/><br> 7 MOD 3: <mvt:eval expr="7 MOD 3"/><br> 8 MOD 3: <mvt:eval expr="8 MOD 3"/><br> 9 MOD 3: <mvt:eval expr="9 MOD 3"/><br> <h2><code>POW</code></h2> 2 POW 1: <mvt:eval expr="2 POW 1"/><br> 2 POW 2: <mvt:eval expr="2 POW 2"/><br> 2 POW 0: <mvt:eval expr="2 POW 0"/><br> 2 POW 3: <mvt:eval expr="2 POW 3"/><br> 2 POW 4: <mvt:eval expr="2 POW 4"/><br> <h2><code>+-*/</code> <small>Math Operators</small></h2> 3 + 3: <mvt:eval expr="3 + 3"/><br> 3 - 3: <mvt:eval expr="3 - 3"/><br> 3 * 3: <mvt:eval expr="3 * 3"/><br> 3 / 3: <mvt:eval expr="3 / 3"/><br> <h2><code>$</code> <small>String Concatination</small></h2> 'foo' $ 'bar': <mvt:eval expr="'foo' $ 'bar'"/><br> <mvt:assign name="g.name" value="'John'" /> 'Hello ' $ g.name: <mvt:eval expr="'Hello ' $ g.name"/><br> <h2><code>IN</code> <small>First String Position (Case Sensitive)</small></h2> 'apple' IN 'Banana': <mvt:eval expr="'apple' IN 'Banana'"/><br> 'ba' IN 'Banana': <mvt:eval expr="'ba' IN 'Banana'"/><br> 'Ba' IN 'Banana': <mvt:eval expr="'Ba' IN 'Banana'"/><br> 'an' IN 'Banana': <mvt:eval expr="'an' IN 'Banana'"/><br> <h2><code>CIN</code> <small>First String Position (Case In-sensitive)</small></h2> 'apple' CIN 'Banana': <mvt:eval expr="'apple' CIN 'Banana'"/><br> 'ba' CIN 'Banana': <mvt:eval expr="'ba' CIN 'Banana'"/><br> 'Ba' CIN 'Banana': <mvt:eval expr="'Ba' CIN 'Banana'"/><br> 'an' CIN 'Banana': <mvt:eval expr="'an' CIN 'Banana'"/><br> <h2><code>EIN</code> <small>Last String Position (Case Sensitive)</small></h2> 'apple' EIN 'Banana': <mvt:eval expr="'apple' EIN 'Banana'"/><br> 'ba' EIN 'Banana': <mvt:eval expr="'ba' EIN 'Banana'"/><br> 'Ba' EIN 'Banana': <mvt:eval expr="'Ba' EIN 'Banana'"/><br> 'an' EIN 'Banana': <mvt:eval expr="'an' EIN 'Banana'"/><br> ('an' IN 'Banana') !== ('an' EIN 'Banana'): (<mvt:eval expr="'an' IN 'Banana'"/>) !== (<mvt:eval expr="'an' EIN 'Banana'"/>)<br> <h2><code>ECIN</code> <small>Last String Position (Case In-sensitive)</small></h2> 'apple' ECIN 'Banana': <mvt:eval expr="'apple' ECIN 'Banana'"/><br> 'ba' ECIN 'Banana': <mvt:eval expr="'ba' ECIN 'Banana'"/><br> 'Ba' ECIN 'Banana': <mvt:eval expr="'Ba' ECIN 'Banana'"/><br> 'an' ECIN 'Banana': <mvt:eval expr="'an' ECIN 'Banana'"/><br> ('an' CIN 'Banana') !== ('an' ECIN 'Banana'): (<mvt:eval expr="'an' CIN 'Banana'"/>) !== (<mvt:eval expr="'an' ECIN 'Banana'"/>)<br> <h2>Value Comparison Opperators</h2> <h3><code>EQ</code></h3> 1 EQ 1: <mvt:eval expr="1 EQ 1"/><br> 1 EQ '1': <mvt:eval expr="1 EQ '1'"/><br> 1 EQ '01': <mvt:eval expr="1 EQ '01'"/><br> 1 EQ 2: <mvt:eval expr="1 EQ 2"/><br> 1 EQ 0: <mvt:eval expr="1 EQ 0"/><br> 1 EQ '': <mvt:eval expr="1 EQ ''"/><br> <h3><code>NE</code></h3> 1 NE 1: <mvt:eval expr="1 NE 1"/><br> 1 NE '1': <mvt:eval expr="1 NE '1'"/><br> 1 NE '01': <mvt:eval expr="1 NE '01'"/><br> 1 NE 2: <mvt:eval expr="1 NE 2"/><br> 1 NE 0: <mvt:eval expr="1 NE 0"/><br> 1 NE '': <mvt:eval expr="1 NE ''"/><br> <h3><code>LT</code></h3> 1 LT 1: <mvt:eval expr="1 LT 1"/><br> 1 LT '1': <mvt:eval expr="1 LT '1'"/><br> 1 LT '01': <mvt:eval expr="1 LT '01'"/><br> 1 LT 2: <mvt:eval expr="1 LT 2"/><br> 1 LT 0: <mvt:eval expr="1 LT 0"/><br> 1 LT '': <mvt:eval expr="1 LT ''"/><br> <h3><code>LE</code></h3> 1 LE 1: <mvt:eval expr="1 LE 1"/><br> 1 LE '1': <mvt:eval expr="1 LE '1'"/><br> 1 LE '01': <mvt:eval expr="1 LE '01'"/><br> 1 LE 2: <mvt:eval expr="1 LE 2"/><br> 1 LE 0: <mvt:eval expr="1 LE 0"/><br> 1 LE '': <mvt:eval expr="1 LE ''"/><br> <h3><code>GT</code></h3> 1 GT 1: <mvt:eval expr="1 GT 1"/><br> 1 GT '1': <mvt:eval expr="1 GT '1'"/><br> 1 GT '01': <mvt:eval expr="1 GT '01'"/><br> 1 GT 2: <mvt:eval expr="1 GT 2"/><br> 1 GT 0: <mvt:eval expr="1 GT 0"/><br> 1 GT '': <mvt:eval expr="1 GT ''"/><br> <h3><code>GE</code></h3> 1 GE 1: <mvt:eval expr="1 GE 1"/><br> 1 GE '1': <mvt:eval expr="1 GE '1'"/><br> 1 GE '01': <mvt:eval expr="1 GE '01'"/><br> 1 GE 2: <mvt:eval expr="1 GE 2"/><br> 1 GE 0: <mvt:eval expr="1 GE 0"/><br> 1 GE '': <mvt:eval expr="1 GE ''"/><br> <h3><code>ISNULL</code></h3> ISNULL 1: <mvt:eval expr="ISNULL 1"/><br> ISNULL '1': <mvt:eval expr="ISNULL '1'"/><br> ISNULL '01': <mvt:eval expr="ISNULL '01'"/><br> ISNULL 2: <mvt:eval expr="ISNULL 2"/><br> ISNULL 0: <mvt:eval expr="ISNULL 0"/><br> ISNULL '': <mvt:eval expr="ISNULL ''"/><br> <h2>Logical Comparison Opperators</h2> <h2><code>AND</code></h2> 1 AND 1: <mvt:eval expr="1 AND 1"/><br> 1 AND 0: <mvt:eval expr="1 AND 0"/><br> 1 EQ 1 AND 2 EQ 2: <mvt:eval expr="1 EQ 1 AND 2 EQ 2"/><br> 1 EQ 2 AND 2 EQ 2: <mvt:eval expr="1 EQ 2 AND 2 EQ 2"/><br> 1 EQ 2 AND 2 EQ 3: <mvt:eval expr="1 EQ 2 AND 2 EQ 3"/><br> <h2><code>OR</code></h2> 1 OR 1: <mvt:eval expr="1 OR 1"/><br> 1 OR 0: <mvt:eval expr="1 OR 0"/><br> 1 EQ 1 OR 2 EQ 2: <mvt:eval expr="1 EQ 1 OR 2 EQ 2"/><br> 1 EQ 2 OR 2 EQ 2: <mvt:eval expr="1 EQ 2 OR 2 EQ 2"/><br> 1 EQ 2 OR 2 EQ 3: <mvt:eval expr="1 EQ 2 OR 2 EQ 3"/><br>
 

MivaScript Operators

 mivascript  operators  NOT  ROUND  CRYPT  MOD  POW  math  string  IN  CIN  EIN  ECIN  EQ  LT  LE  GT  GE  ISNULL  AND  OR
Created: 1456865827
View "MivaScript Operators"
<h1>MivaScript Operator Examples</h1> <h2><a href="http://www.mivascript.com/topic/operators.html">Documentation</a></h2> <h2><a href="http://snippets.miva.com/id/1456864554/latest">snippets.miva.com Examples</a></h2>c <h2><code>NOT</code></h2> NOT 0: <mvt:eval expr="NOT 0" /><br> NOT 1: <mvt:eval expr="NOT 1" /><br> NOT '': <mvt:eval expr="NOT ''" /><br> NOT 'foobar': <mvt:eval expr="NOT 'foobar'" /><br> <h2><code>ROUND</code></h2> <mvt:assign name="g.PI" value="3.14159265359" /> g.PI: &mvte:global:PI;<br> g.PI ROUND 0: <mvt:eval expr="g.PI ROUND 0" /><br> g.PI ROUND 1: <mvt:eval expr="g.PI ROUND 1" /><br> g.PI ROUND 2: <mvt:eval expr="g.PI ROUND 2" /><br> g.PI ROUND 3: <mvt:eval expr="g.PI ROUND 3" /><br> <h2><code>CRYPT</code></h2> <mvt:assign name="g.password" value="'open-sesame'" /> g.password: &mvte:global:password;<br> g.password CRYPT 'key': <mvt:eval expr="g.password CRYPT 'key'" /><br> g.password CRYPT 'other-key': <mvt:eval expr="g.password CRYPT 'other-key'" /><br> <h2><code>MOD</code></h2> 3 MOD 3: <mvt:eval expr="3 MOD 3"/><br> 4 MOD 3: <mvt:eval expr="4 MOD 3"/><br> 5 MOD 3: <mvt:eval expr="5 MOD 3"/><br> 6 MOD 3: <mvt:eval expr="6 MOD 3"/><br> 7 MOD 3: <mvt:eval expr="7 MOD 3"/><br> 8 MOD 3: <mvt:eval expr="8 MOD 3"/><br> 9 MOD 3: <mvt:eval expr="9 MOD 3"/><br> <h2><code>POW</code></h2> 2 POW 1: <mvt:eval expr="2 POW 1"/><br> 2 POW 2: <mvt:eval expr="2 POW 2"/><br> 2 POW 0: <mvt:eval expr="2 POW 0"/><br> 2 POW 3: <mvt:eval expr="2 POW 3"/><br> 2 POW 4: <mvt:eval expr="2 POW 4"/><br> <h2><code>+-*/</code> <small>Math Operators</small></h2> 3 + 3: <mvt:eval expr="3 + 3"/><br> 3 - 3: <mvt:eval expr="3 - 3"/><br> 3 * 3: <mvt:eval expr="3 * 3"/><br> 3 / 3: <mvt:eval expr="3 / 3"/><br> <h2><code>$</code> <small>String Concatination</small></h2> 'foo' $ 'bar': <mvt:eval expr="'foo' $ 'bar'"/><br> <mvt:assign name="g.name" value="'John'" /> 'Hello ' $ g.name: <mvt:eval expr="'Hello ' $ g.name"/><br> <h2><code>IN</code> <small>First String Position (Case Sensitive)</small></h2> 'apple' IN 'Banana': <mvt:eval expr="'apple' IN 'Banana'"/><br> 'ba' IN 'Banana': <mvt:eval expr="'ba' IN 'Banana'"/><br> 'Ba' IN 'Banana': <mvt:eval expr="'Ba' IN 'Banana'"/><br> 'an' IN 'Banana': <mvt:eval expr="'an' IN 'Banana'"/><br> <h2><code>CIN</code> <small>First String Position (Case In-sensitive)</small></h2> 'apple' CIN 'Banana': <mvt:eval expr="'apple' CIN 'Banana'"/><br> 'ba' CIN 'Banana': <mvt:eval expr="'ba' CIN 'Banana'"/><br> 'Ba' CIN 'Banana': <mvt:eval expr="'Ba' CIN 'Banana'"/><br> 'an' CIN 'Banana': <mvt:eval expr="'an' CIN 'Banana'"/><br> <h2><code>EIN</code> <small>Last String Position (Case Sensitive)</small></h2> 'apple' EIN 'Banana': <mvt:eval expr="'apple' EIN 'Banana'"/><br> 'ba' EIN 'Banana': <mvt:eval expr="'ba' EIN 'Banana'"/><br> 'Ba' EIN 'Banana': <mvt:eval expr="'Ba' EIN 'Banana'"/><br> 'an' EIN 'Banana': <mvt:eval expr="'an' EIN 'Banana'"/><br> ('an' IN 'Banana') !== ('an' EIN 'Banana'): (<mvt:eval expr="'an' IN 'Banana'"/>) !== (<mvt:eval expr="'an' EIN 'Banana'"/>)<br> <h2><code>ECIN</code> <small>Last String Position (Case In-sensitive)</small></h2> 'apple' ECIN 'Banana': <mvt:eval expr="'apple' ECIN 'Banana'"/><br> 'ba' ECIN 'Banana': <mvt:eval expr="'ba' ECIN 'Banana'"/><br> 'Ba' ECIN 'Banana': <mvt:eval expr="'Ba' ECIN 'Banana'"/><br> 'an' ECIN 'Banana': <mvt:eval expr="'an' ECIN 'Banana'"/><br> ('an' CIN 'Banana') !== ('an' ECIN 'Banana'): (<mvt:eval expr="'an' CIN 'Banana'"/>) !== (<mvt:eval expr="'an' ECIN 'Banana'"/>)<br> <h2>Value Comparison Opperators</h2> <h3><code>EQ</code></h3> 1 EQ 1: <mvt:eval expr="1 EQ 1"/><br> 1 EQ '1': <mvt:eval expr="1 EQ '1'"/><br> 1 EQ '01': <mvt:eval expr="1 EQ '01'"/><br> 1 EQ 2: <mvt:eval expr="1 EQ 2"/><br> 1 EQ 0: <mvt:eval expr="1 EQ 0"/><br> 1 EQ '': <mvt:eval expr="1 EQ ''"/><br> <h3><code>NE</code></h3> 1 NE 1: <mvt:eval expr="1 NE 1"/><br> 1 NE '1': <mvt:eval expr="1 NE '1'"/><br> 1 NE '01': <mvt:eval expr="1 NE '01'"/><br> 1 NE 2: <mvt:eval expr="1 NE 2"/><br> 1 NE 0: <mvt:eval expr="1 NE 0"/><br> 1 NE '': <mvt:eval expr="1 NE ''"/><br> <h3><code>LT</code></h3> 1 LT 1: <mvt:eval expr="1 LT 1"/><br> 1 LT '1': <mvt:eval expr="1 LT '1'"/><br> 1 LT '01': <mvt:eval expr="1 LT '01'"/><br> 1 LT 2: <mvt:eval expr="1 LT 2"/><br> 1 LT 0: <mvt:eval expr="1 LT 0"/><br> 1 LT '': <mvt:eval expr="1 LT ''"/><br> <h3><code>LE</code></h3> 1 LE 1: <mvt:eval expr="1 LE 1"/><br> 1 LE '1': <mvt:eval expr="1 LE '1'"/><br> 1 LE '01': <mvt:eval expr="1 LE '01'"/><br> 1 LE 2: <mvt:eval expr="1 LE 2"/><br> 1 LE 0: <mvt:eval expr="1 LE 0"/><br> 1 LE '': <mvt:eval expr="1 LE ''"/><br> <h3><code>GT</code></h3> 1 GT 1: <mvt:eval expr="1 GT 1"/><br> 1 GT '1': <mvt:eval expr="1 GT '1'"/><br> 1 GT '01': <mvt:eval expr="1 GT '01'"/><br> 1 GT 2: <mvt:eval expr="1 GT 2"/><br> 1 GT 0: <mvt:eval expr="1 GT 0"/><br> 1 GT '': <mvt:eval expr="1 GT ''"/><br> <h3><code>GE</code></h3> 1 GE 1: <mvt:eval expr="1 GE 1"/><br> 1 GE '1': <mvt:eval expr="1 GE '1'"/><br> 1 GE '01': <mvt:eval expr="1 GE '01'"/><br> 1 GE 2: <mvt:eval expr="1 GE 2"/><br> 1 GE 0: <mvt:eval expr="1 GE 0"/><br> 1 GE '': <mvt:eval expr="1 GE ''"/><br> <h3><code>ISNULL</code></h3> ISNULL 1: <mvt:eval expr="ISNULL 1"/><br> ISNULL '1': <mvt:eval expr="ISNULL '1'"/><br> ISNULL '01': <mvt:eval expr="ISNULL '01'"/><br> ISNULL 2: <mvt:eval expr="ISNULL 2"/><br> ISNULL 0: <mvt:eval expr="ISNULL 0"/><br> ISNULL '': <mvt:eval expr="ISNULL ''"/><br> <h2>Logical Comparison Opperators</h2> <h2><code>AND</code></h2> 1 AND 1: <mvt:eval expr="1 AND 1"/><br> 1 AND 0: <mvt:eval expr="1 AND 0"/><br> 1 EQ 1 AND 2 EQ 2: <mvt:eval expr="1 EQ 1 AND 2 EQ 2"/><br> 1 EQ 2 AND 2 EQ 2: <mvt:eval expr="1 EQ 2 AND 2 EQ 2"/><br> 1 EQ 2 AND 2 EQ 3: <mvt:eval expr="1 EQ 2 AND 2 EQ 3"/><br> <h2><code>OR</code></h2> 1 OR 1: <mvt:eval expr="1 OR 1"/><br> 1 OR 0: <mvt:eval expr="1 OR 0"/><br> 1 EQ 1 OR 2 EQ 2: <mvt:eval expr="1 EQ 1 OR 2 EQ 2"/><br> 1 EQ 2 OR 2 EQ 2: <mvt:eval expr="1 EQ 2 OR 2 EQ 2"/><br> 1 EQ 2 OR 2 EQ 3: <mvt:eval expr="1 EQ 2 OR 2 EQ 3"/><br>
 

MivaScript Operators

 mivascript  operators  NOT  ROUND  CRYPT  MOD  POW  math  string  IN  CIN  EIN  ECIN  EQ  LT  LE  GT  GE  ISNULL  AND  OR
Created: 1456864554
View "MivaScript Operators"
<h1><A href="http://www.mivascript.com/topic/operators.html">MivaScript Operators</A></h1> <mvt:assign name="g.counter" value="1" /> <h2><code>NOT</code></h2> NOT 0: <mvt:eval expr="NOT 0" /><br> NOT 1: <mvt:eval expr="NOT 1" /><br> NOT '': <mvt:eval expr="NOT ''" /><br> NOT 'foobar': <mvt:eval expr="NOT 'foobar'" /><br> <h2><code>ROUND</code></h2> <mvt:assign name="g.PI" value="3.14159265359" /> g.PI: &mvte:global:PI;<br> g.PI ROUND 0: <mvt:eval expr="g.PI ROUND 0" /><br> g.PI ROUND 1: <mvt:eval expr="g.PI ROUND 1" /><br> g.PI ROUND 2: <mvt:eval expr="g.PI ROUND 2" /><br> g.PI ROUND 3: <mvt:eval expr="g.PI ROUND 3" /><br> <h2><code>CRYPT</code></h2> <mvt:assign name="g.password" value="'open-sesame'" /> g.password: &mvte:global:password;<br> g.password CRYPT 'key': <mvt:eval expr="g.password CRYPT 'key'" /><br> g.password CRYPT 'other-key': <mvt:eval expr="g.password CRYPT 'other-key'" /><br> <h2><code>MOD</code></h2> 3 MOD 3: <mvt:eval expr="3 MOD 3"/><br> 4 MOD 3: <mvt:eval expr="4 MOD 3"/><br> 5 MOD 3: <mvt:eval expr="5 MOD 3"/><br> 6 MOD 3: <mvt:eval expr="6 MOD 3"/><br> 7 MOD 3: <mvt:eval expr="7 MOD 3"/><br> 8 MOD 3: <mvt:eval expr="8 MOD 3"/><br> 9 MOD 3: <mvt:eval expr="9 MOD 3"/><br> <h2><code>POW</code></h2> 2 POW 1: <mvt:eval expr="2 POW 1"/><br> 2 POW 2: <mvt:eval expr="2 POW 2"/><br> 2 POW 0: <mvt:eval expr="2 POW 0"/><br> 2 POW 3: <mvt:eval expr="2 POW 3"/><br> 2 POW 4: <mvt:eval expr="2 POW 4"/><br> <h2><code>+-*/</code> <small>Math Operators</small></h2> 3 + 3: <mvt:eval expr="3 + 3"/><br> 3 - 3: <mvt:eval expr="3 - 3"/><br> 3 * 3: <mvt:eval expr="3 * 3"/><br> 3 / 3: <mvt:eval expr="3 / 3"/><br> <h2><code>$</code> <small>String Concatination</small></h2> 'foo' $ 'bar': <mvt:eval expr="'foo' $ 'bar'"/><br> <mvt:assign name="g.name" value="'John'" /> 'Hello ' $ g.name: <mvt:eval expr="'Hello ' $ g.name"/><br> <h2><code>IN</code> <small>First String Position (Case Sensitive)</small></h2> 'apple' IN 'Banana': <mvt:eval expr="'apple' IN 'Banana'"/><br> 'ba' IN 'Banana': <mvt:eval expr="'ba' IN 'Banana'"/><br> 'Ba' IN 'Banana': <mvt:eval expr="'Ba' IN 'Banana'"/><br> 'an' IN 'Banana': <mvt:eval expr="'an' IN 'Banana'"/><br> <h2><code>CIN</code> <small>First String Position (Case In-sensitive)</small></h2> 'apple' CIN 'Banana': <mvt:eval expr="'apple' CIN 'Banana'"/><br> 'ba' CIN 'Banana': <mvt:eval expr="'ba' CIN 'Banana'"/><br> 'Ba' CIN 'Banana': <mvt:eval expr="'Ba' CIN 'Banana'"/><br> 'an' CIN 'Banana': <mvt:eval expr="'an' CIN 'Banana'"/><br> <h2><code>EIN</code> <small>Last String Position (Case Sensitive)</small></h2> 'apple' EIN 'Banana': <mvt:eval expr="'apple' EIN 'Banana'"/><br> 'ba' EIN 'Banana': <mvt:eval expr="'ba' EIN 'Banana'"/><br> 'Ba' EIN 'Banana': <mvt:eval expr="'Ba' EIN 'Banana'"/><br> 'an' EIN 'Banana': <mvt:eval expr="'an' EIN 'Banana'"/><br> ('an' IN 'Banana') !== ('an' EIN 'Banana'): (<mvt:eval expr="'an' IN 'Banana'"/>) !== (<mvt:eval expr="'an' EIN 'Banana'"/>)<br> <h2><code>ECIN</code> <small>Last String Position (Case In-sensitive)</small></h2> 'apple' ECIN 'Banana': <mvt:eval expr="'apple' ECIN 'Banana'"/><br> 'ba' ECIN 'Banana': <mvt:eval expr="'ba' ECIN 'Banana'"/><br> 'Ba' ECIN 'Banana': <mvt:eval expr="'Ba' ECIN 'Banana'"/><br> 'an' ECIN 'Banana': <mvt:eval expr="'an' ECIN 'Banana'"/><br> ('an' CIN 'Banana') !== ('an' ECIN 'Banana'): (<mvt:eval expr="'an' CIN 'Banana'"/>) !== (<mvt:eval expr="'an' ECIN 'Banana'"/>)<br> <h2>Value Comparison Opperators</h2> <h3><code>EQ</code></h3> 1 EQ 1: <mvt:eval expr="1 EQ 1"/><br> 1 EQ '1': <mvt:eval expr="1 EQ '1'"/><br> 1 EQ '01': <mvt:eval expr="1 EQ '01'"/><br> 1 EQ 2: <mvt:eval expr="1 EQ 2"/><br> 1 EQ 0: <mvt:eval expr="1 EQ 0"/><br> 1 EQ '': <mvt:eval expr="1 EQ ''"/><br> <h3><code>NE</code></h3> 1 NE 1: <mvt:eval expr="1 NE 1"/><br> 1 NE '1': <mvt:eval expr="1 NE '1'"/><br> 1 NE '01': <mvt:eval expr="1 NE '01'"/><br> 1 NE 2: <mvt:eval expr="1 NE 2"/><br> 1 NE 0: <mvt:eval expr="1 NE 0"/><br> 1 NE '': <mvt:eval expr="1 NE ''"/><br> <h3><code>LT</code></h3> 1 LT 1: <mvt:eval expr="1 LT 1"/><br> 1 LT '1': <mvt:eval expr="1 LT '1'"/><br> 1 LT '01': <mvt:eval expr="1 LT '01'"/><br> 1 LT 2: <mvt:eval expr="1 LT 2"/><br> 1 LT 0: <mvt:eval expr="1 LT 0"/><br> 1 LT '': <mvt:eval expr="1 LT ''"/><br> <h3><code>LE</code></h3> 1 LE 1: <mvt:eval expr="1 LE 1"/><br> 1 LE '1': <mvt:eval expr="1 LE '1'"/><br> 1 LE '01': <mvt:eval expr="1 LE '01'"/><br> 1 LE 2: <mvt:eval expr="1 LE 2"/><br> 1 LE 0: <mvt:eval expr="1 LE 0"/><br> 1 LE '': <mvt:eval expr="1 LE ''"/><br> <h3><code>GT</code></h3> 1 GT 1: <mvt:eval expr="1 GT 1"/><br> 1 GT '1': <mvt:eval expr="1 GT '1'"/><br> 1 GT '01': <mvt:eval expr="1 GT '01'"/><br> 1 GT 2: <mvt:eval expr="1 GT 2"/><br> 1 GT 0: <mvt:eval expr="1 GT 0"/><br> 1 GT '': <mvt:eval expr="1 GT ''"/><br> <h3><code>GE</code></h3> 1 GE 1: <mvt:eval expr="1 GE 1"/><br> 1 GE '1': <mvt:eval expr="1 GE '1'"/><br> 1 GE '01': <mvt:eval expr="1 GE '01'"/><br> 1 GE 2: <mvt:eval expr="1 GE 2"/><br> 1 GE 0: <mvt:eval expr="1 GE 0"/><br> 1 GE '': <mvt:eval expr="1 GE ''"/><br> <h3><code>ISNULL</code></h3> ISNULL 1: <mvt:eval expr="ISNULL 1"/><br> ISNULL '1': <mvt:eval expr="ISNULL '1'"/><br> ISNULL '01': <mvt:eval expr="ISNULL '01'"/><br> ISNULL 2: <mvt:eval expr="ISNULL 2"/><br> ISNULL 0: <mvt:eval expr="ISNULL 0"/><br> ISNULL '': <mvt:eval expr="ISNULL ''"/><br> <h2>Logical Comparison Opperators</h2> <h2><code>AND</code></h2> 1 AND 1: <mvt:eval expr="1 AND 1"/><br> 1 AND 0: <mvt:eval expr="1 AND 0"/><br> 1 EQ 1 AND 2 EQ 2: <mvt:eval expr="1 EQ 1 AND 2 EQ 2"/><br> 1 EQ 2 AND 2 EQ 2: <mvt:eval expr="1 EQ 2 AND 2 EQ 2"/><br> 1 EQ 2 AND 2 EQ 3: <mvt:eval expr="1 EQ 2 AND 2 EQ 3"/><br> <h2><code>OR</code></h2> 1 OR 1: <mvt:eval expr="1 OR 1"/><br> 1 OR 0: <mvt:eval expr="1 OR 0"/><br> 1 EQ 1 OR 2 EQ 2: <mvt:eval expr="1 EQ 1 OR 2 EQ 2"/><br> 1 EQ 2 OR 2 EQ 2: <mvt:eval expr="1 EQ 2 OR 2 EQ 2"/><br> 1 EQ 2 OR 2 EQ 3: <mvt:eval expr="1 EQ 2 OR 2 EQ 3"/><br>