Originally Posted By: ShaneEP
Everything has always worked for me without using =1 or =0.


Just to add some more preference from experience..... \:D In my opinion "If InGroup" or "If Not InGroup" is more clear than =1 or =0 at the end of the evaluation.

The only way I have ever used the InGroup function is like below. I have never used =0 or =1 to check the outcome.

 Code:
If InGroup("GroupName1")

or
 Code:
If Not InGroup("GroupName2")

If possible I also try to avoid situations where two or more groups are evaluated on one line and action needs to be taken based on the outcome. Maybe that is because I often have trouble getting all possible outcomes clear and make mistakes this way. I always try to nest the group checks like this:

 Code:
If InGroup("GroupName1")
	If Not InGroup("GroupName2")
		;Do something
	EndIf
Else
	;Do something else
EndIf


This has worked just fine for the past 18+ years that I'm using KiXtart.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.