I'm trying to get my bot to distinguish between users that have made profiles for the chan RPG and those who have not, and send different messages to the chan accordingly.

I've gotten about this far:
Code:
on *:JOIN:#Gagged:{ mode #Gagged +v $nick 
  msg #Gagged Welcome to the club, $nick - 10Here's a complementary slice of tea, and a cup of ham sandwich. Enjoy!  
    if ($readini(info.ini,$Nick,Gender) != Yes) && (%Chan == $Chan) { msg #Gagged We here at the club noticed that you've not made a profile $+ ! Type !setup in chant to join the Secret Gag Alliance - We're waiting for you.~ | halt }
    if ($readini(info.ini,$nick,Gender) == Yes) && (%Chan == $Chan) { msg #Gagged Good to see you, $+ ! Your usual place within the Secret Gag Alliance has been reserved. Enjoy your stay, and please accept this coil of rope. }
}

But I'm not sure what I'm doing wrong. Any help would be greatly appreciated. Thank you. smile