PDA

View Full Version : IF ELSE Condition to hide and show something


PAKIDIL
09-09-2011, 05:32 PM
hello,

i need help if someone click from file test.php tick on hide images . it doesn't show otherwise it shows as normal .

so what will be the condition code for this i search on net but i am little confused about how to use it .

if someone could help me in this thanks
best regards
waiting for reply

souperman
09-09-2011, 05:48 PM
If you're using an external php file then you can just use regular php syntax.

PAKIDIL
09-09-2011, 05:57 PM
any example please ? like

<if condition="file.php",show=yes > else= Hide>


something like that

thanks

--------------- Added 1315674741 at 1315674741 ---------------

anyone please ?

souperman
09-10-2011, 04:53 PM
php code is:

if ($randomvariable == true)
{
do this...
}
else
{
do this
}

PAKIDIL
09-10-2011, 11:00 PM
thanks but i need template code for this .

--------------- Added 1315699643 at 1315699643 ---------------

like : If someone click from usercp panel that there is option hide the image or show the image :

<if condition="$myusercp-setting-hide-image-variable">
hide ( should i have to write only " hide" or something else ?)
<else />
show (should i have to write only "show" or something else ? )
</if>

Is this correct ?

thanks
waiting for reply

--------------- Added 1315766232 at 1315766232 ---------------

any help please ?