I need to prescribe a condition in a chunk: if there is no background image, output the background color, otherwise display the image. Installed the plugin "if". I write this:
style="[[!If? &subject=`[[+tv.bgImage]]` &operator=`==` &operand=`empty` &then=`background-color:[[+tv.bgColor]]` &else=`background-image:url([[+tv.bgImage]])`" tv.bgImage and tv.bgColor are variables that are responsible for the image and background color. Result - everything after style = "is not displayed. What am I doing wrong?