[pmwiki-users] PHP help with the " if " control statement

Dominique Faure dominique.faure at gmail.com
Thu Mar 23 11:00:21 CST 2006


Perhaps, you should try with a conditional expression (using the
ternary operator):

."\n"
. ((!empty($_GET["link"])) ?
   ("  [[" . ($_GET["link"]) . "| »Click here for more]]") : '')
. "\n"

Regards,
Dom




More information about the pmwiki-users mailing list