![]() |
if statements in templates
Ok i know you can execute something if a field has a value at all with
<if condition="whatever the field it"> and if that field is filled out it will execute that action however how can i change it depending on what that field contains IE i had 2 radio buttons Named. 1)blah 1)whatever now in stead of checking to see if just the field is filled out i want it to check to see what it contains then execute based on what the value is. like: IF (field1=blah) {execute this if they mark the blah button} else {execute this if they check any thing other then the blah button} |
You almost go it right... just use two equal signs (==) instead of one and surround "blah" in single quotes ('). ;)
|
Php works in templates?
|
To some extent... Template Conditionals
|
ooh i should probably read threw that manual. lol
Thank you very much :) |
Its always a good place to start. :p
|
All times are GMT. The time now is 06:28 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:
|