How can i make a simple if else statement with the conditional output?
I know there is a shortcode like this [wpv-conditional if="( $(wpcf-item-image-1) ne '' )"]Text here[/wpv-conditional] but i can't add a else statement here. I want to show wpcf-item-image-2 if wpcf-item-image-1 has no value.
I have 2 image fields. Sometimes only field 1 has a value, but sometimes field 1 has no value and field 2 does have. In PHP it must be something like if field 1 has value > echo value field 1 elseif field 2 has value && field 1 has no value > echo value 2.