Developer forum

Forum » Templates » Compare 2 dwtags in if sentence

Compare 2 dwtags in if sentence


Reply
Hi

Been searching high and low with no results.

Is it possible to compare two DW tags in an @If clause ?

i.e. tada

I can get it to work with a hardcoded value like News:ID=2 but not when comparing 2 tags.

Is there something i'm missing or isn't it possible.

/Peter

Replies

 
Nicolai Høeg Pedersen
Reply
That is not possible...
 
Nicolai Høeg Pedersen
Reply
Hi Again.

Just made an update of the scriptparser, to if the test value is a valid template tag in the context, the value of the template tag will be used:

<!--@If(DwPageID=Global:Page.Top.ID)-->
	DwPageID=Global:Page.Top.ID <!--@Global:Page.Top.ID-->
<!--@EndIf-->

 

You must be logged in to post in the forum