Skip to content

Instantly share code, notes, and snippets.

@ulyssesr
Created September 11, 2017 18:20
Show Gist options
  • Save ulyssesr/743ad6162fcf1aae81ef01f76346a64e to your computer and use it in GitHub Desktop.
Save ulyssesr/743ad6162fcf1aae81ef01f76346a64e to your computer and use it in GitHub Desktop.
event-if-else-statement
if($event>$now):
if($event==""):else:$t=$event;endif;
elseif($event1>$now):
if($event1==""):else:$t=$event1;endif;
elseif($event2>$now):
if($event2==""):else:$t=$event2;endif;
elseif($event3>$now):
if($event3==""):else:$t=$event3;endif;
elseif($event4>$now):
if($event4==""):else:$t=$event4;endif;
elseif($event5>$now):
if($event5==""):else:$t=$event5;endif;
elseif($event6>$now):
if($event6==""):else:$t=$event6;endif;
elseif($event7>$now):
if($event7==""):else:$t=$event7;endif;
elseif($event8>$now):
if($event8==""):else:$t=$event8;endif;
elseif($event9>$now):
if($event9==""):else:$t=$event9;endif;
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment