UFB Wiki

The UFB (Unsafe Four Bit) Programming Language -- FAST | EASY | VERBOSE -- Built With Rust

View on GitHub


JUMP


All languages have conditional statements in one form or another.

This language just makes you a bit more conscious before and after implementing them.

A jump statement can work like an if statement or an over-calculated while loop.

Jump statements conditionally jump to a zero-indexed command number, not a line number.

You can take note of the command number by adding a comment to the end of the line.

wvar 38 "Hi" // 0

print 38 // 1

// Jump to command number 0 only if "$038" >  "$250"
jm 38 250

// Jump to command number 0 only if "$038" <  "$250"
jl 38 250

// Jump to command number 0 only if "$038" == "$250"
je 38 250

// Jump to command number 0 only if "$038" != "$250"
jne 38 250
Non-numerical data is first transformed into a hash before the conditional check.


⏪️