Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
store text $1 "hello"
to store numbers you would write:
store $1 1
or
store $1 ACC
to store from the accumulator
to print stuff to console you write :
print "hello"
to print text,
print 1
to print a number,
print $1
to print a memory address or
print ACC
to print the accumulator
for the arguments if i write in the console "test Hello" and in the test program there was:
store text $1 ARG
then $1 would have Hello in it
you could also do
print ARG
to print the arguments.
sorry for my long comment but i hope you like my suggestions
-Ryan
example
Calculator 10 X 5
>50
Calculator 10 X 5
[program ] [1][2][3]
in the program
store text $1 ARG
would get 10
store text $1 ARG[0]
would get "10"
store text $1 ARG[1]
would get "X"
store text $1 ARG[0]
would get "5"
also store $1 ARG[0]
would get 10 as a number
store $1 ARG[1]
since X is not a number it would get either NaN or 0
example:
store $1 0
if $1 == 0
store $1 1
print $1
end
print "end"
would print
>1
>end
to use for loops:
for $1 = 1; $1 <= 5;add 1
print $1
end
print "end"
would print
>1
>2
>3
>4
>5
>end