Skip to content

Instantly share code, notes, and snippets.

@Swizec
Created Jan 15, 2013
Embed
What would you like to do?
var v;
switch ( $(this).val() ) {
case 'tru':
v = true;
break;
case 'fls':
v = false;
break;
case 'null':
default:
v = null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment