Hi Charlie,
I appreciate the help on this. That resolves one of the problems I was seeing!
I'm creating a commit script so I adapted your suggestion a little bit and it almost works perfectly. There is just one problem I still can't figure out. The if statement runs whether or not the user exists. I attached the code I have so far. The output I get is this:
>commit
warning: User missing. Readding user: aaa
warning: User missing. Readding user: bbb
warning: User missing. Readding user: ccc
configuration check succeeds
commit complete
It successfully adds the user to the configuration but it always thinks the user is not there whether it is or not. For example, this output I got when all three users were present in the configuration.
The wierd thing is I have a similar if structure to check if 'class default' is created and that one works perfectly. The only difference is that I compare a literal string "default" in the structure that works and in the one that doesn't work I'm comparing the var $agent....
William