ALPHA STORE DESIGN STUDIO - authorized Yahoo! Small Business Partner
call us at (908).338.3992
 
About Us
Portfolio
System Additions for Store Pages
Custom Graphic Design. How It Works
/
BLOG: A few "tips" and "RTML secrets" of Yahoo store.

OUR BLOG: Yahoo Store from A to Z and RTML development "secrets".


RTML Operator “>=” [greater than or equal to]

In the Yahoo Store RTML Template a newly created “>=” operator looks like:

>= value1 nil
   value2 nil

This operator compares two numbers. If the first argument is greater or equal to the second one, then the operator returns “true”.

EXAMPLES:

FOR variable pos
    initial 10
    test <= value1 pos
            value2 0
    update pos - 2
  TEXT GRAB
         pos
         " "

In this example the operator “>=” checks a loop property “pos”. The loop continues to work as long as the “pos” value is greater or equal to zero.

RTML Operator “<=" [less than or equal to]

In a Yahoo Store RTML Template a newly created “<=” operator looks like:

<= value1 nil
   value2 nil

This operator compares two numbers. If the first argument is less than or equal to the second one, then operator returns “true”.

This operator could be used in combination with “IF“, “FOR” and “WHEN” operators.

EXAMPLES:

FOR variable pos
    initial 1
    test <= value1 pos
            value2 10
    update pos + 1
  TEXT GRAB
         pos
         " "

In this example, the operator “<=” checks a loop property “pos“. The loop continues its work as long as the “pos” value is less or equal to 10.