Skip to content

Instantly share code, notes, and snippets.

@cgsmith
Created July 2, 2013 22:20
Show Gist options
  • Save cgsmith/5913770 to your computer and use it in GitHub Desktop.
Save cgsmith/5913770 to your computer and use it in GitHub Desktop.
<?php
$valveOpen = true;
$valveClose = true;
if ($valveOpen && $valveClose) {
$light = 1;
}elseif ($valveOpen && !$valveClose){
$light = 2;
}else{
$light = 3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment