Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.