#Add row in a table conditionally

2 messages · Page 1 of 1 (latest)

cerulean fjord
#

Hi, how can i add a row to a table conditionally? If I use if {[content]} else {none}, an empty cell is added.
Thanks!

copper latch
#

you can do ..if condition { ([content],) }. you need an array to spread the content. the else case can be skipped because it's none by default and none is spreadable, too.