A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/LPC/ifnot


IFNOT STATEMENT

ifnot (object o = find_player(NAME)) {
	write("You can't go there when "+NAME+" isn't online!\n");
	return 1;
}

ifnot(expr) is equivalent to if(!(expr)). In some cases it makes things
more readable, that's all. The above is one such typical example.

This is a simulated LPC extension done via /include/auto.h .

See also:


This page was generated in LPC

Imprint / Impressum