Probably going to regret this or something, but whatever.
You removed the END from the file, which was used for a function. Restore the file to what it was. Remove the while loop and replace it with your whatever code.
For IF you have to use ==.
= is for assignment, and == will check if the given two parameters are equal.
IF PTWOHIT==TRUE THEN 'code here.
Also, consider using multi-line IFs:
IF PTWOHIT==TRUE THEN
'code here
'more code here
'etc.
ENDIF
Also, PRINT "TEXT ":VARIABLE is invalid syntax. Replace the : with a ;.
The function has no return values. To make a function with no returns, use the following syntax:
DEF FUNCNAME [PARAMS1,...]
DEF MYCMD HI$, COUNT
PRINT HI$*COUNT
'prints the given string COUNT times
END
You get the gist. Check the help for DEF for more info.
You can pass an array as a regular parameter.
DIM MYARRAY[2]
MYARRAY[0]=9
MYARRAY[1]=15
PRINR ARRFUNC(MYARRAY)
DEF ARRFUNC(ARRAY)
FOR I%=0 TO LEN(ARRAY)-1
INC RETURNS, ARRAY[I%]
NEXT
RETURN RETURNS
END
If everthing went well, you should see 24 in the console
To upload files/folders to the server, go to the Network menu in the top menu. Choose the one says send. Select your file/folder. After it is uploaded, you can make a public key if you want to. You choose the option with "Create Public Key" or something. After it's done, check the download menu for the key. (folders are the same as projects.)