!conditional actions
message={ value="Tests" }
text={ value="Xtpanel can be made to execute actions only if
a certain condition is met. This is done using ""test"".
A test can contain a ""condition"" which is evaluated, and
""true"" and ""false"" subobjects; which gets executed depends
on the result of evaluating the condition. The true and
false blocks can contain actions, or additional nested
tests.
    The condition is a system command, usually the UNIX ""test""
command. You can substitute some other command that returns
0 or 1. See the test man page for more details on how to use test.
Below is a simple example that tests to see whether two integers
are the same."
}
vbox={ borderWidth=0
hbox={ borderWidth=0
  message={ value="Are the two fields equal?" }
  message={ name=comptres value="" }
}
field={ name=comp1 value="1" }
field={ name=comp2 value="2" }
button={ label=Evaluate test={ condition="test $comp1 -eq $comp2"
  	true={ action="ASSIGN comptres Yes" 
	       action="SET comptres background green"
	}
  	false={ action="ASSIGN comptres No" 
	        action="SET comptres background red"
	}
	}
}
}
