A rule is as block of text with a 'C', Javascript like language to describe logic rules.
See also: Rules reference.
if ( temp > 25 ) { fan = 1 ; } else { fan = 0 ; }