Forums Sign Up Reply Search Statistics
Fast Template GraFX Software Solutions - Forum / Fast Template /

Template using if else

 
Author rr1024
Forums Member
#1 Posted: 30 Nov 2007 10:07:59
Reply 
Can we use OR AND in the IF's
something like
<!-- IFDEF: SRCH_NOT_ROBOT AND LOGGED_ADMIN -->

Also can we use =
Like
<!-- IFDEF: SRCH_NOT_ROBOT = 'yes' -->
Author software
Admin
#2 Posted: 4 Dec 2007 16:41:17
Reply 
<!-- IFDEF: SRCH_NOT_ROBOT = 'yes' -->
There is no use for this.
If you want to have true value just use this
<!-- IFDEF: SRCH_NOT_ROBOT -->
....
$ft->assign("SRCH_NOT_ROBOT",1);

opposite
$ft->assign("SRCH_NOT_ROBOT",0);

The condition is evaluated in php not in the template.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.