TXTML

The markup language for Subversive (Mobile) Storytelling

conditions : if-feed


DESCRIPTION

<if-feed> tests a feed variable against either a user variable or a supplied value. If relation is supplied, <if-feed> will compare the values as numbers according to the relation; otherwise they are tested for equivalency. If both var2 and value are present, <if-feed> will evaluate to true if either condition matches.


PARAMETERS

name - feed name
var - feed variable to test
var2 (optionl) - user variable
value (optional) - supplied string
relation (optional, =|>|<|>=|<=) - value relationship


EXAMPLES

...                    
     <if-feed name="weathernyc" var="rain" value="true">
          <txt>I feel like a wet dog.</txt>
          <end />
     </if-feed>
     <if-feed name="weathernyc" var="snow" value="true">
          <txt>I feel like a snowman.</txt>
          <end />
     </if-feed>
     <if-feed name="weathernyc" var="clouds" value="true">
          <txt>Not much of a sun today.</txt>
          <end />
     </if-feed>
     <if-feed name="weathernyc" var="wind" value="true">
          <txt>Dont let the wind blow you over...</txt>
          <end />
     </if-feed>
     <if-feed name="weathernyc" var="haze" value="true">
          <txt>Just a lazy hazy day.</txt>
          <end />
     </if-feed>
     <txt>What a <get name="weathernyc" var="temp" /> day!</txt>
...

introduction
installation
authoring txtml
definition
event handlers
flow control
conditions
variables
content
math
other
feeds
requestors
formats
admin interface
extending