Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
conditional display of string
seen
How can i conditionally display a text on a table cell?
Tried adding following expression using the expression builder; looks like i am missing some thing.
if(params["globalItemDropdown"]==1)
return 'Display This Text'
if(params["globalItemDropdown"]==0)
return 'Display Other Text'
Find more posts tagged with
Comments
gcottle
Hi seen,
The string needs to be returned like this: {"Hello"}
e.g.:
if (dataSetRow["CITY"]!="Nantes") {"Hello"} else {"Goodbye"}
Regards,
Graham
Virgil Dodson
Hi seen, in addition to what Graham said, you can also do it like this:
if(params["globalItemDropdown"]==1){
d='Display This Text';}
if(params["globalItemDropdown"]==0){
d='Display Other Text';}
d;