Code:
- <script>
- function GroupCheck(GroupId){
- GCheck = false;
- for(i = 0; i <= vf_usergroup.length; i++){
- if(vf_usergroup[i] = GroupId){
- GCheck = true;
- break;
- }
- }
- return GCheck;
- }
- </script>
Used to check if the user that is on is in a specific usergroup.
It isn't working right though
I am using it like:
To do a conditional check it needs a double ==
if(vf_usergroup[i] == GroupId){
I can't believe I made THAT mistake o.o
Sometimes we all just need a fresh pair of eyes to spot the simple things![]()
And you are very good at fixing code I write