Skip to content

Instantly share code, notes, and snippets.

@hiun
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiun/10735128 to your computer and use it in GitHub Desktop.
Save hiun/10735128 to your computer and use it in GitHub Desktop.
JavaScript possible shape of if else statement.
if (tagInfo === 0) {
if (session === true) {
if (layout === undefined) {
} else if (layout === false) {
}
} else if (session === undefined) {
if (layout === undefined) {
} else if (layout === false) {
}
}
} else if (tagInfo !== 0) {
if (session === true) {
if (layout === undefined) {
} else if (layout === false) {
}
} else if (session === undefined) {
if (layout === undefined) {
} else if (layout === false) {
}
}
}
if (tagInfo === 0) {
if (session === true && layout === undefined) {
} else if (session === true && layout === false) {
} if (session === undefined && layout === undefined) {
} else if (session === undefined && layout === false) {
}
} else if (tagInfo !== 0) {
if (session === true && layout === undefined) {
} else if (session === true && layout === false) {
} if (session === undefined && layout === undefined) {
} else if (session === undefined && layout === false) {
}
}
if (tagInfo === 0 && session === undefined layout === undefined) {
} else if (tagInfo === 0 && session === true layout === false {
} else if (tagInfo !== 0 && session === undefined layout === undefined) {
} else if (tagInfo !== 0 && session === true layout === false) {
} else if (tagInfo === 0 && session === undefined layout === undefined) {
} else if (tagInfo === 0 && session === true layout === false) {
} else if (tagInfo !== 0 && session === undefined layout === undefined) {
} else if (tagInfo !== 0 && session === true layout === false) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment