!math
message={ value="Arithmetic in scripts" }
text={ value="Xtpanel takes advantage of many of the
commands and features built into the UNIX operating system.
For example, rather than implementing arithmetic operations
in xtpanel itself, the UNIX desktop calculator bc is used
in scripts to do numerical operations.
   Below is a small application that shows how this works.
Enter numbers in the two boxes, and select an operation from
the list. When you press the GO button, the result of performing
the calculation is displayed in the box after the equals sign."
}
hbox={ name=noborder 
 field={ name=num1 value="1" }
 list={ name=oper 
	itemlist={ list="+ - * /" }
 }
 field={ name=num2 value="2" }
 message={ value="=" }
 message={ name=result value="3" }
}
button={ label=GO action="ASSIGN result `echo '$num1 $oper $num2' $calc`" }
