English
Chinese
  yTin Online Help  

  Home (english) | Home (chinese) | Downloads | Sample scripts | Online help | Utilities | FAQs | Discussions/Messages | Mud&links | My Progs | Mirrors |
ifexist

format:            #ifexist {var_name} {command-1}
                     #ifexist {var_name} {command-1} else {command2}

This checks if the variable named "var_name" exists.

Example:         #ifexist {food} {eat $food} else {eat bread}
                     #ife {leader} {say My leader is $leader!} else {say I have no leader!}

See also: #if, #ifmatch, #variable, #unvariable