Is it possible to have a statement such as this:
if[Material=123456]
   Do Something...
else
   Something else...
endif     

This is not possible in standard GuiXT, but it is child's play with the InputAssistant component using variables:

Set V[scr_material] "&[Material]"

if V[scr_material=123456]

   Title "Attention, this is material 123456"

endif