x = 3.1415 ! No extra definition needed | 3.1415 |
string = "many ways are possible to do this" | many way |
123.4 + 1/4 - 100 | 23.65 |
length = 12.3 + 0.12 - 2 ! defines a variable "length" | 10.42 |
area = length * length | 108.5764 |
s = TIME() | s = TIME( TO, MInute=m, Hour=h, YYYYMMDD=txt ) |
seconds since 0:00 | m, h, txt have current time |
pi = ACOS(-1) | 3.141593 |
123 x = pi + 1 ! A leading constant with no operator is a label | 4.141593 |
ALARM( 1 ) | ALARM( 5, 4 ) | ALARM( 999 ) |
wait for keyboard, mouse, or alarm event | in 5 seconds call F4 | quit immediately |
WINDOW(MAXImize=wh) | WINDOW(NORMal=wh) | WINDOW(MINImize=wh) |
wh = windowhandle (wh = 0: script window) | restore original size |
|
idx = INDEX(txt, "201\d:", 128) ! search "201d:" (\d means 1 digit, 128 is RegEx) | 588 |
TIME(YYYYMMDD=24000101, TO, Grg=Jan1_2400) ! shows sec since 0:00 | 68042.22 |
TIME(Day=1, MOnth=1, Year=2000, TO, Gregorian=Jan1_2000) | 68019.1 |
average = (Jan1_2400 - Jan1_2000) / 400 ! Gregorian leap year formula | 365.2425 |
joined = "aA" && "bB" ! && joins with 1 space | aA bB |
Idx = INDEX("ABCDE", "cd") ! options possible | 3 |
idx = INDEX( (11,12,13,14), 12.34, 32) ! option best match = 32 | 2 |
string = &("ab") ! see Join operator | abababab |
text = &&( "original"( $1) ) | o r i g |