GetAlarmState( alarmno )
Fetch the state of a given alarm.
=== Parameters ===
| ''alarmno'' | The alarm number |
=== Return value ===
Returns the current state of the alarm. 1=alarm is active. 0=alarm is not active.
=== Example usage ===
if(GetAlarmState(10)) {
// logic to run if alarm is active
}