Enable/disable HREF attribute using IF statement (JSON)

Occasional Contributor

This is on SharePoint and I know just enough about JSON to ask questions and stumble my way through it.

I want to be able to create an IF statement that references [$Another_Column] to determine if the current column will display that text as a hyperlink or just regular text. I want to keep the "txtContent": "@currentField" but change whether or not it's going to use the href attribute. Any advice?

 

 

Here's what I'm working with using the real column name:
If [$Link0] is empty, then I want the column to just display normal text, otherwise, I want the column to reference the [$Link0] as the href value. 

I have no clue how to create an if statement that determines if you're using a certain attribute or not. 
Thanks in advance,
Jake

0 Replies