This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help with scan

Help for those learning Tcl or writing their own scripts.
Post Reply
h
honeybee
Halfop
Posts: 80
Joined: Sun Jan 01, 2006 12:42 pm

help with scan

Post by honeybee »

Code: Select all

proc myproc:time  {m h args} {
   if {[scan $h %d]%1 != 0} {return 0}
i want to scan for mints instead of hours it works fine but how can i change it to scan for lets say 5 mins or so.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

if {[scan $m %d]%5} {return 0}
Post Reply