If you want to download BynixScript right now, you can do that using NPM or by cloning the BynixScript repository.
Make sure you have NodeJS and NPM. Then run the following command:
This is a simple example of what can be done with BynixScript.
var myAge = contentAge(14)
var myName = "Aliez"
var yourAge = contentAge(14)
var yourName = "Dave"
var difference
func contentAge(age):
if age == null || age == 0:
const random = rand(roundUp() * 10) * 5
const a = roundUp(random)
return a
else:
return age
end:
end:
func check(order, year):
if order === "age difference":
if myAge < 1 || yourAge < 1 || typeof myAge === "string" || typeof yourAge === "string":
print("Invalid age")
else:
if myAge < yourAge:
difference = yourAge - myAge
print(yourName + " is older than " + myName + ", they are " + difference + " years apart")
elif myAge === yourAge:
print(myName + " and " + yourName + " are the same age")
else:
difference = myAge - yourAge
print(myName + " is younger than " + yourName + ", they are " + difference + " years apart")
end:
end:
elif order === "year of birth":
var myBirthYear = year - myAge
var yourBirthYear = year - yourAge
print(myName + " was born in " + myBirthYear + " and " + yourName + " was born in " + yourBirthYear)
elif order === "stop":
print("Sorry, the process cannot be continued. Because the process has stopped")
else:
print("Sorry, something went wrong")
end:
end:
check("year of birth", 2024)
Feel free to reach out to us by filling out the form below.