I have the following problem:
I would like to show and hide input fields when a variable from the PHP script is set. Further it will include a second condition which also will show or hide another input field.
I would like to know if something like this is possible:
<?php if(isset($var) && $var =="S0"):?>
<div>
inputfield1
</div>
<?php if(isset($var) && ($var =="S0" || $var =="S2"):?>
<div>
inputfield2
</div>
<?php endif; ?>
<div>
inputfield3
</div>
<?php endif; ?>
You have missing 1 bracket in second condition
<?php if(isset($var) && ($var =="S0" || $var =="S2")):?>