You can get the last digit using something like

Code
echo -a $right( $time(n), 1)


and to check if something is even, you check if its a multiple of 2

Code
if (2 // $right( $time(n), 1)) {
  echo -a even
}
else {
  echo -a odd
}




References:
/help $right
/help $asctime
/help if-then-else

Last edited by FroggieDaFrog; 27/01/20 05:08 PM.

I am SReject
My Stuff