Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Difference between values?

Asked by 10 years ago

I want to know what the difference between the values are and what they are used for, such as String Value, Bool Value (Etc..)

3 answers

Log in to vote
1
Answered by 10 years ago

Ok, that's the very very basic of all programming languages. In all there are atleast 3 common type of variables. Integer (aka "int"), String, Value of George Boole (aka "boolean"). Those are the main types of variables, each one sends to the computer bytes, but now I don't tell you what kind of byte, how many etc. Let's start: IntValue => int => a variables that can ONLY contains number without the quotes (""); StringValue => String => a variables that can contains every kind of character but inside the quotes; BoolValue => Boolean => a variables that return a TRUE or FALSE value, the TRUE value sends the binary number "1", the FALSE instead sends the "0" one. Examples:

local intvalue = 4727
local stringvalue = "Hi, I can contain every kind of character =) 1727/f+..;???^!,  but be aware of the UTF Encode, (example: 'Ë' or 'ò')!!!"
local boolvalue = false

But those are just variables, not values like you said! There are also values like ObjectValue that can contain any Object like a Model, a Script etc.

0
This helped a lot. However I was confused on this part "ObjectValue that can contain any Object like a Model, a Script etc." Would the model or script be the parent or would the name of the model just be the object value? IntellectualBeing 430 — 10y
1
That will actually be a StringValue then. An ObjectValue can contains a Parent Object =) alessandro112 161 — 10y
0
Oh, okay! Thanks for the help. :) IntellectualBeing 430 — 10y
1
No problem =D alessandro112 161 — 10y
Ad
Log in to vote
1
Answered by
yurhomi10 192
10 years ago

Basically what is in the title, StringValue holds a string in the value, lol. Bool value stores a True/False value in the value.

0
I would like to know all the values, and what they do, and when to use them. IntellectualBeing 430 — 10y
Log in to vote
1
Answered by 10 years ago

The StringValue has a String normally a text value. The Bool (short for Boolean) Value shows a True or False value.

Answer this question