Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Environment Variables

KaliMasterDev edited this page Jul 24, 2020 · 1 revision

Environment Variables

There is implementation of environment variables. You can use it as commands, text to display with echo command, or, in future numbers to use in calc.

Setting variables in HEXAos

To set variable you can use set command like bellow:

set var1=hello world

or to require user input:

set var1=input()

Getting variables value

To get value of variable and display it to console you can use echo command.

echo $var1

You can also use variables inside text like:

echo Value of var1 is: $var1

Using environment variables as commands

To use variable as command you have to create variable with command as value. For example:

set cmd=mkdir abc

Now you can type "$" + variable name in prompt like:

$cmd

And as you can see with dir command, new directory named "abc" was created

Clone this wiki locally