![]() |
making an if statment in postbit
I need to make this
$post['postcount'] == 1 equal more then the first post $post['postcount'] ==1,2,3 doesn't work, how do i require more then one postcount besides creating a whole new IF statment for each postcount? Thanks |
<if condition="$post[postcount] >= 1">
|
Sorry my example may be off a bit need something that i can choose each postbit
$post['postcount'] == 1,6,10,50 Not all of them ;-) I guess it has to be $post['postcount'] == 1 | $post['postcount'] == 6 | etc..... is that correct? |
why not set something in your php script.
if ($var == 1 OR $var == 6 ......) { $postcountspecial = 1; } then in template just test this 1 var. |
Well this is in a template thats why.
|
Quote:
|
Yes but you could make the if statement in the script that loads the template, then just a single if statement in the template, based on a var set in the php.
Think i have seen OR like if's in templates once, but i don't remember in which one anymore |
Quote:
<if condition="$var OR $var2"> basicly conditions let you do some real basic php, nothing fancy. |
Thanks for the explanation Zachery
|
All times are GMT. The time now is 07:06 PM. |
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:
|