Just at a quick glance, this line has some issues:
Quote:
|
if (($sirens ==39) &&($sirens >=39) && ($sirens <=59)){ ##Oot
|
The only condition that would match this would be when sirens is equal to 39. I'm thinking what it should be, if I understand the code properly, is this:
Quote:
|
if (($sirens >=39) && ($sirens <=59)){ ##Oot
|
Meaning when the variable is between 39 and 59, inclusive.
Otherwise you're saying when sirens is 39 AND when sirens is greater than or equal to 39 AND when sirens is less than or equal to 59. Like I said, only a value of 39 would return true.