The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Two Conditionals
I know there's a way to do a checksum of two conditionals but I don't know the syntax. Could someone point me in the right direction?
If I'm as clear as mud on my description please PM me!! |
#2
|
|||
|
|||
Sorry but don't really understand. Please try to give an example.
|
#3
|
|||
|
|||
actually, the logic would be
Code:
if((X*Y) == (Y-A)) { $do = 'Z'; } |
#4
|
|||
|
|||
Quote:
Condition #2 Field6 = Component (Active Duty, Reserve, Retired, Veteran, Spouse, Parent) If Field5 = True and Field6 = Spouse Then post Spouse.gif If Field5 = True and Field6 DOES NOT = Spouse $post[field5].gif Does that explain what I'm after a bit better? |
#5
|
|||
|
|||
So if field5 is true, then you want to show an image with the name "$post[field5].gif" (asuming the 5 is a typo and should be field6?)
|
#6
|
|||
|
|||
Quote:
Marco here is what I have: field5 is a single selection drop down with 5 options: Marine Corps, Army, Air Force, Navy, Coast Guard field6 is a single selection drop down with 6 options: Active Duty, Reserve, Retired, Veteran, Spouse, Parent Currently my postbit_legacy is as follows for those specific fields: Code:
<div align="center" class="smallfont"> <if condition="$post[field5]"><img src="/grunged/bos/$post[field5].gif"></if><br /> <if condition="$post[field6]">$post[field6]</if> </div> and where [field6] was would reflect the branch of service In short if SPOUSE is selected in field6 I want the conditionals above swapped!! |
#7
|
|||
|
|||
Is this what you want?
HTML Code:
<div align="center" class="smallfont"> <if condition="$post['field5']"><img src="/grunged/bos/<if condition="$post['field6'] == 'Spouse'">spouse<else />$post[field5]</if>.gif"></if><br /> <if condition="$post['field6']">$post['field6']</if> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|