{if code help

hi the following code makes all users with user group 4 not see the image,how can i make it the opposite so only user group 4 can see the image

{if $userdata.role !=4}

would need to add ==true to is somewhere?

thanks in advance

Any of the below examples should work for you

[php]<?php
if ($userdata.role !=4)
{
//Do stuff here when !=4
}
else
{
//Do stuff here when == 4
}
?>
[/php]
or

[php]<?php
if ($userdata.role ==4)
{
//Do stuff here when == 4
}
?>
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service