cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HTML Descriptors : Tag [If]

vnegre
New Contributor

Hello,

 

I want to use [IF] tag in my HTML descriptor.

 

Example in the documentation :

"[P="Property"]
[If="value=Value1"]Text 1[/If]
[If="Value=Value2"]Text 2[/If]
[/P] "
 
I try to do the same structure for my descriptor :
 
"[Variable=RootObjectName]
[If="Value=AAA"] Hello  [/If]
[/Variable]"
 
I want to print "Hello" when the html descriptor descriptes "AAA".
But this is always  "False" : "hello" is never print... whereas the variable value is "AAA" I don't understand why.
Can you help me?
 
Many thanks!
 
 
1 Reply

vnegre
New Contributor

Second try :

 

[Buffer="B1,B2"]

[Buffer=B1 Set] [Variable=RootObjectName/] [/Buffer]
[Buffer="B2" Set="AAA"/]

[Buffer=B1 Get/]
[Buffer=B2 Get/]  => I can see B1 and B2 are the same

[If="buffer(B1)=buffer(B2)"] Hello2  [/If]

[/Buffer]

 

It doesn't work too...