Home Learn Explore About ⭐ GitHub
 🔍

Explore FLang!

Browse all the built-in superpowers and keywords. Search anything to find it fast!

🧰 Built-in Functions 31
String
strlower
strlower(text)
Converts all letters to lowercase.
strlower("HELLO") → "hello"
String
strupper
strupper(text)
Converts all letters to UPPERCASE.
strupper("hello") → "HELLO"
String
strlen
strlen(text)
Returns the number of characters in the text.
strlen("abc") → 3
String
strreplace
strreplace(text, old, new)
Replaces part of the text with something new.
strreplace("abc", "a", "z") → "zbc"
String
strsplit
strsplit(text, separator)
Splits text into a list using a separator.
strsplit("a,b,c", ",") → ["a","b","c"]
String
strcontains
strcontains(text, search)
Checks if a word/letter is inside the text.
strcontains("apple", "p") → True
String
strstarts
strstarts(text, prefix)
Checks if text begins with a specific part.
strstarts("hello", "he") → True
String
strends
strends(text, suffix)
Checks if text ends with a specific part.
strends("hello", "lo") → True
String
strjoin
strjoin(list, joiner)
Joins a list of strings together with a joiner.
strjoin(["a","b","c"], "-") → "a-b-c"
Math
abs
abs(number)
Returns the absolute (positive) value of a number.
abs(-10) → 10
Math
round
round(number)
Rounds a number to the nearest whole number.
round(4.7) → 5
Math
floor
floor(number)
Always rounds DOWN to the nearest whole number.
floor(4.9) → 4
Math
ceil
ceil(number)
Always rounds UP to the nearest whole number.
ceil(4.1) → 5
Math
max
max(a, b) or max(list)
Finds the biggest number among the inputs.
max(5, 10) → 10
Math
min
min(a, b) or min(list)
Finds the smallest number among the inputs.
min(5, 10) → 5
Math
sum
sum(list)
Adds up all numbers in a list.
sum([1, 2, 3]) → 6
Math
random
random()
Gives a random decimal number between 0 and 1.
random() → 0.735...
Math
randint
randint(min, max)
Gives a random whole number in the given range.
randint(1, 10) → 7 (varies!)
List
len
len(list)
Tells you how many items are in the list.
len([1, 2, 3]) → 3
List
range
range(start, end)
Creates a list of numbers from start up to (not including) end.
range(1, 5) → [1, 2, 3, 4]
List
sort
sort(list)
Returns a sorted version of the list (smallest first).
sort([3, 1, 2]) → [1, 2, 3]
List
reverse
reverse(list)
Flips the list backwards.
reverse([1, 2, 3]) → [3, 2, 1]
List
append
append(list, item)
Adds an item to the end of a list.
append([1,2], 3) → [1, 2, 3]
List
pop
pop(list)
Removes and returns the last item from a list.
pop([1, 2, 3]) → [1, 2]
List
index
index(list, n)
Returns the item at position n in the list.
index([10,20,30], 1) → 20
List
slice
slice(list, start, end)
Returns a portion of the list from start to end.
slice([1,2,3,4], 1, 3) → [2, 3]
Type
typeof
typeof(value)
Tells you what type a value is (int, str, float, list, etc.).
typeof(42) → "int"
Type
tostr
tostr(value)
Converts a number (or anything) to text.
tostr(123) → "123"
Type
toint
toint(value)
Converts text to a whole number (integer).
toint("123") → 123
Type
tofloat
tofloat(value)
Converts text to a decimal number (float).
tofloat("1.5") → 1.5
😕 No functions found! Try a different search.
🔑 Keywords 14
SET
Creates or updates a variable
SET name TO "Alex"
TO
Used with SET to assign a value
SET x TO 10
DISP
Prints/displays a value on screen
DISP "Hello!"
IF
Makes a decision based on a condition
IF score > 50:
ELIF
"Else If" — checks another condition
ELIF score > 20:
ELSE
Runs when no IF/ELIF matched
ELSE:
FOR
Repeats code for each item
FOR list AS item:
AS
Names the current item in a FOR loop
FOR fruits AS fruit:
WHILE
Repeats while a condition is true
WHILE count < 10:
NEXT
Skip to next loop iteration (continue)
NEXT
END
Stop the loop completely (break)
END
DEF
Defines a new function
DEF greet(name):
RETURN
Returns a value from a function
RETURN result
ASK
Gets input from the user
ASK INT "Your age? "
😕 No keywords found! Try a different search.