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 “BLUE”

Within Yahoo Store RTML Template, this operator is showing as:

BLUE nil

The operator takes color value and returns its blue component of RGB (red green blue) color model in numeric value between 0 and 255.

EXAMPLES:

  WITH= variable blue
        value BLUE @background-color
    WITH= variable red
          value RED @background-color
      WITH= variable green
            value GREEN @background-color
        BODY background-color COLOR red red - 20
                                    green green - 20
                                    blue blue - 20

At this example, we took Red Green and Blue color components from the global variable @background-color. Then, we are using these components to make the body background darker.

RTML Operator “AS-STRING”

Within Yahoo Store RTML Template, this operator is showing as:

AS-STRING nil

The purpose of this operator is to take an argument and convert it to a string.

EXAMPLE:

Let us pretend, that one of our test item has “Saving on Quantity” price value, defined as: 30 5 125 10 200. Where: 1 item price is $30, 5 items price is $125 and 10 items price is $200.

At this case the property @price returns numerical array (30 5 125 10 200), while AS-STRING @price returns text string – 30 5 125 10 200

RTML Operator “AS-NUMBER”

Within Yahoo Store RTML Template, this operator is showing as:

AS-NUMBER nil

The purpose of this operator is to take an argument and convert it (if possible) to a numerical type.

EXAMPLES:

AS-NUMBER “$77”

The argument in this example starts with “$”, where “$” is not a numerical character and therefore the AS-NUMBER returns 0

AS-NUMBER “10.44 20 30”

This example returns 10.44 because AS-NUMBER stops at the not numerical blank character.