Forum > Coding >

Static docs :: Variables

Posts: 123

Threads: 26

Joined: Feb, 2021

Reputation: 3

Posted

Variables are really easy to be made in static! All you need is the static programming language.

 

I will be posting documentations of static on the lua section of the wearedevs forum, since i believe it's a good spot.

 


Before we learn about variables, we need to know what strings and integers are. An integer (or int), is a number. A string, is a set of characters that form a phrase.

 

How to make a string:

 

'All strings go into quotation marks'

How to make an int:

 

234209234

Anyways, lets learn about variables:


Make a variable:

 

var(@myvariable, 'Hello, world!')

 

Of course, to know if the variable was created, we need to test it out. Save that code into a text file. Then, drag the text file with the code into Static.exe. This will run the code.

 

The program should automatically exit out, because all it does is set a value to a variable.


Now what if we want to spice things a little more?

 

We can set the value of a variable to the returned value of a function!

 

 

var(@Input, read())
write('This is the input: ')
write(@Input)

 

  • 0

Contribute to Express, an open-source ROBLOX exploit written fully in C.

Posts: 594

Threads: 24

Joined: Sep, 2020

Reputation: 13

Replied

uhh ok? /chars

  • 0

| Discord (Updated): apppon#8358 | C++ Enthusiast | 

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

Bro just put the documentation in a pastebin or something then link it to your original release thread.

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )