Hey Hey
Hope you guys can help, i'm working on a login script for a system and what i need is that in the popup menu for channel have a Login or logout depending if you logged in to the system.
menu channel {
$iif($chan == #GameHotel ,GH $+ $chr(58) Vagt Logon):{ .set %gh.vagt yes | commands here }
$iif($chan == #GameHotel ,GH $+ $chr(58) Vagt Logoff):{ .set %gh.vagt yes | commands here }
}
What i need is it also checks for what state %gh.vagt is in, if its YES then the options in menu channel should be logoff and if no it should be logon
Hope you have sugguestions ...