HTML Descriptors : Tag [If]
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2018 10:22 AM
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]"
[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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2018 10:32 AM
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...
