Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: TestOperator test token attribute information

$
0
0
Just putting this in here so that it shows up when people search for TestOperator

Details on using test tokens is in Back Office > Admin > Help > Token Test Sections

In there we find information about the TestOperator attribute which allows a value to be compared against another value using operators such as <, >, <=, >=, <> and =

This post records that the values do not always work as written, but in some cases can be made to work by escaping the operator.

Refer to this token for testing if stock is below 100:
[TAG:TEST:<prop TestType="stock" TestName="Qty" TestValue="100" TestOperator="&lt;=" Action="Show" />]Only [TAG:DATABIND:QtyRemaining] left in stock![TAG:END]

And this token for when stock is over 101:
[TAG:TEST:<prop TestType="stock" TestName="Qty" TestValue="101" TestOperator="&gt;=" Action="Show" />]Plenty of stock available[TAG:END]

It is also important to note that the TestName attribute for stock is "Qty"

ROb

Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>