Logic Control

We are also considering the implementation of certain logic functions, which allow you to vary output according to logical tests.

This would allow you to do things such as;

  • Change the background color depending on the time of day
  • Insert a certain block of CSS to support Internet Explorer (but have it excluded otherwise)

Functions currently under consideration include;

If-then-else constructions
  • $if
  • $elseif
  • $else
  • $endif
Switch constructions
  • $switch
  • $case
  • $else
  • $endswitch