Simple test on svar

<< Click to Display Table of Contents >>

Navigation:  User guide > Logic >

Simple test on svar

test of svar - true if the svar contains:

svar / bit                the given response

svar / bit1..bit2        any response the range given (inclusive)

svar / >bit                any response above the named response

svar /<bit                any response below the named response or blank

svar /B                  blank or empty (no response)

NOTE: an svar which is empty is treated as having a value of zero. It may be tested for 0 which is equivalent to B. A mvar may not be tested for zero; you must use B.

Examples of simple tests on svars:

$s101a/5,

$sa/2..9,

$class/>2,

$p3/<2,

$fred/b,

$fred/0,