Decision table within rules

Hi

Is it possible to implement a decision table within a rule?

For example :-

A sensor returns a value between 10 & 60

Can a single rule be created with different actions for exact values or ranges?

<20
executecommand ("all off")

20.1 & <30

executecommand ("1st thing ON")
executecommand ("2nd thing OFF")
executecommand ("3rd thing OFF")

30.1 & <40

executecommand ("2nd thing ON")
executecommand ("1st thing OFF")
executecommand ("3rd thing OFF")

40.1

executecommand ("3rd thing ON")
executecommand ("1st thing OFF")
executecommand ("2nd thing OFF")

Or would each value or range have to be a separate rule?

The other question is..

What is the correct syntax to define a range in the event section of a rule?

    Event( source == "A Numeric Sensor", value > 20 & < 30 )

you need a rule for each range.

The syntax is:

Event( source == “A Numeric Sensor”, value > 20, value < 30 )