![]() |
variable = conditional
how would i go about making sure that a variable shows the results of a conditional?
something like this, i remember being old i couldn't it in such a way before, just don't remember how i was taught to do it. PHP Code:
|
i'd suggest that way:
PHP Code:
|
thanks that code seems to do it, however how would i then call the code?
in my templates it's set as $rate but i'm not sure what to put in the file for it call to the template i thought i would be able to just put $show_project below the other template calls for that page but i that don't work :( |
add $show_project into your template, that should do it.
but i'm not sure, about the output, i think it's TRUE or FALSE, but i may bewrong |
PHP Code:
|
or use iif as it's the vb pendant ;)
|
well i managed to get the code working bar this last bit i guess that's what i was trying to do in the first place :o
but i was gonna ask PHP Code:
|
ok i'm at a total loss, it's still not working
PHP Code:
|
Try:
PHP Code:
|
:w00t: it worked, i'm so greatful, thank you so so so so so so much :D
|
All times are GMT. The time now is 01:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|