Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] more 'if' help help help elp....



Can any help me with the syntax for a different type of if

currently I know of being able to

i.e.

[if value somthing == 1]
 [then]                         something 1    [/then]
 [elseif value something == 2]  something 2    [/elsif]
 [else]                         something rest [/else]
[/if]
 

but I would really like to be

[if value something]
    [condition something == 1]  something 1      [/condition]
    [condition something == 2]  something 2      [/condition]
    [condition something == 3]  something 3      [/condition]
    [condition something == 4]  something 4      [/condition]
........and so on.......
[/if]
 

so it finds the contion that matches and does it.
bit like a case statement.

I know that I can use no end of nested Ifs but that becomes messy

any help???????????

--
'Darn it, who spiked my coffee with water?!' - larry wall
 
 


Search for: Match: Format: Sort by: