xCss

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
including;
  • $if
  • $elseif
  • $else
  • $endif
Switch constructions
including;
  • $switch
  • $case
  • $else
  • $endswitch