[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
RabidHaMsTeR.Org • View topic - key script for lock toggeling

key script for lock toggeling

For questions about problems with R4 and Bug reports

Moderators: rabidhamster, Rovastar

key script for lock toggeling

Postby tonikov » Sun Apr 10, 2011 3:01 pm

tonikov
 
Posts: 14
Joined: Mon Sep 11, 2006 11:49 am

Re: key script for lock toggeling

Postby rabidhamster » Tue Apr 12, 2011 10:55 am

Hi,

Sorry for the late reply. The issue is that R4 'executes' all code it finds unless it is in square brackets. For an 'if' statement you don't want to execute both the 'true' and the 'false' bits, you want to pass them, unexecuted, into the 'if' so that it may choose what to execute - so you must use square brackets.

Hope that helps...
rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England


Return to R4 Bugs/Problems

Who is online

Users browsing this forum: No registered users and 10 guests

cron