Conditionals again…

Looks like I’ve got my answer as to how to do conditionals. I got this from the css3 draft:


body > h2:not(:first-of-type):not(:last-of-type)

So, conditionals will probably look like:

#favorite_song:ctrl.empty($user.name){
content:lang.i18n(”unknown_song”);
}
#favorite_song:ctrl.equals($user.name, “Joe”){
content: “Some Song”;
}
#favorite_song:ctrl.equals($user.name, “Alice”){
content:”The Muppet Song”;
}
#favorite_song:ctrl.equals($user.name, “Corbin”){
content:”Blue’s Clues”;
}

Leave a Reply