IF/ELSE combining using && or || for multiple fields
Permalink Browser Info Environment
Hi,
Is it possible to have logic where I am checking if Field A, B, C, or D exists. If so, print out <aside>. Otherwise, skip over and go to the next bit of code?
I haven't been able to combine logic for if one field of 5 or so has content, then do the following.
Is this possible with this add-on? Would be great if it is - otherwise, not sure what I'm going to do.
I'd like to only print out the if at least one of the fields within it has content, if none of those fields are being used, I do not want the to print out.
My code is as follows currently.
Thanks for any help you can provide!
-Kiki
Is it possible to have logic where I am checking if Field A, B, C, or D exists. If so, print out <aside>. Otherwise, skip over and go to the next bit of code?
I haven't been able to combine logic for if one field of 5 or so has content, then do the following.
Is this possible with this add-on? Would be great if it is - otherwise, not sure what I'm going to do.
I'd like to only print out the
aside
aside
My code is as follows currently.
<aside class="right"> <if name="Funded/Supported by"> <h3>Support/Funding</h3> </if> <if name="Graphic Linked"> <field name="Graphic Linked" placeholder="graphic" /> <img src="{{graphic}}" class="imageRight" width="100" /> </if> <if name="Funded/Supported by"> <field html="true" name="Funded/Supported by" /> </if> <if name="Related Links"> <h3>Related Links</h3> <field html="true" name="Related Links" /> </if>
Viewing 15 lines of 20 lines. View entire code block.
Thanks for any help you can provide!
-Kiki
Type: | Discussion |
---|---|
Status: | New |