-
Notifications
You must be signed in to change notification settings - Fork 1
builtins and basic use
Ccode-lang edited this page Nov 18, 2021
·
5 revisions
- Don't use a function as a argument for a function. Please store the function output in a variable.
- All types used for variables in JavaScript can be used in Ccode.
print('hi')
import <module name>
This will import all functions from that module.
See how this works in imports.cc.
set h = 5
h = 5
if h == 5 {
print 'hi'
}
elif h == 4 {
print 'bye'
}
else {
print 'hello'
}
input(">>")
// or
h = input(">>")
This gets user input and stores it in the given variable.
// use seconds
sleep(5)
js <js command> js
while h == 1 {
print 'hi'
}
Declaration
func test(num1, num2) {
print num1 + num2
}
Using function
test(1, 2)
// This is a comment
``
Welcome to the Ccode language wiki!