worked like charm, rateu
i thought in different way <if $GLOBALS['mybb']->user['usergroup'] != 5 && $GLOBALS['mybb']->user['usergroup'] != 7 then> Text </if>
using && did the work. but your code is very simple to add any number of gids easily in array. i will make use of your code. initially leefish helped with her code
<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 5 || $GLOBALS['mybb']->user['usergroup'] == 6 then> stuff for usergroup 4,5,6</if>
which will be long if we want to use more codes. but using your array code, the length is decreased alot and simple.