PDA

View Full Version : Event handler - checking multiple global variables



charlesm
01-06-2005, 02:30 PM
Is it possible to check multiple global variables in a custom condition?

Like:

If Number1(Global) equals 1 OR Number2(Global) equals 1 then
{
DoSomething
}
else
{
DoSomething
}

JoannaG
01-12-2005, 03:00 PM
Hello,

It is not possible currently to add multiple conditions to an Event object other than AND conditions. Such that if Condition A AND Condition B are present... You can, however, create multiple event objects to perform the type of condition check you mentioned. You can use a Trigger Event Action assigned to the False Action of the first Event. So, it might look like this.

Event #1

If Number1(Global) equals 1 then
{
DoSomething
}
else
{
Trigger Event #2
}


Event #2

If Number2(Global) equals 1 then
{
DoSomething
}
else
{
DoSomething
}

These 2 events together will check if Numer1(Global) or Number2(Global) equals 1.

I hope this is helpful. If I can be of further assistance, please let me know.