Skip to main content

Output Variables

Output Variables

The Unv print function is often used to output variables and text

To combine both text and a variable, Unv uses the + character:

x =  "awesome"
print("Unv is " + x)

You can also use the + character to add a variable to another variable:

x =  "Unv is "
y = "awesome"
z = x + y
print(z)

For numbers, the + character works as a mathematical operator:

x =  5
y = 10
print(x + y)

If you try to combine a string and a number, It's working on some runtimes, but it's highly discouraged.

x =  5
y = "John"
print(x + y)
Supported Runtimes

Check is your flavour of Unv is supported.