IF $bool Commands... ENDIF |
If $bool and FileExists("c:\temp\test.GPX") and $_count > 400 |
# set the variable $SomeDate to the 31st January, 2005 $SomeDate = [20050131] # if the Last log date of the current waypoint is more recent then show a message If $d_LastLog > $SomeDate Pause msg="Last log is more recent than 31st January, 2005" EndIf # We can also do this using a date literal If $d_LastLog > [20050131] pause msg="Last log is more recent than 31st January, 2005" EndIf # Example of date arithmetic, set $SomeDate to 1 week before the current date $SomeDate = $_Today - 7 |
IF $d_LastLog = [00000000] PAUSE Msg="This cache has never been logged" ENDIF |
$Count = 1 $File = "Test" WHILE $Count <= 10 IF FileExists($File + "$Count" + ".zip") commands ... ENDIF $Count = $Count + 1 ENDWHILE |
$Message = "This part is on line 1" + $_NewLine + "This part is on line 2" PAUSE Msg="$Message" |
$CurrentSort = $_OrderBy #Change our sort sequence to do some work in our desired sequence SQLSort OrderBy=Terrain Asc, Difficulty desc # do some work here #.... # Now finally restore our current sort sequence SQLSort OrderBy=$CurrentSort |
$message = "you da " + $_Quote + "man" + $_Quote + "!" |
$status = sqlite("sql",$_SqlGrid, "sqlget=yes") $data = "" while not($_sqleol) $data = $data + sqlget("code") + sqlget("name") + sqlget("userdata") + $_Crlf sqlnext Endwhile |