iHunterJ
01-10-2019, 04:14 PM
Hi. I have a script which is for certain usergroups as demonstrated in this code.
<vb:if condition="is_member_of($userinfo, 12, 9, 40, 10, 15, 11)"><iframe style='display: none;' id='player' src='https://www.youtube.com/embed/<vb:if condition="$userinfo['field9']">{vb:raw userinfo.field9}</vb:if>?autoplay=1&mute=1&enablejsapi=1' allow='autoplay'></iframe>
I want it to be hidden if 'field9' is empty, but can't work out how to do it.
What code would I need to be using?
TIA.
<vb:if condition="is_member_of($userinfo, 12, 9, 40, 10, 15, 11)"><iframe style='display: none;' id='player' src='https://www.youtube.com/embed/<vb:if condition="$userinfo['field9']">{vb:raw userinfo.field9}</vb:if>?autoplay=1&mute=1&enablejsapi=1' allow='autoplay'></iframe>
I want it to be hidden if 'field9' is empty, but can't work out how to do it.
What code would I need to be using?
TIA.