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

What is the difference Between Bool values and Int Values?

Asked by 8 years ago

Okay, So I've been a programmer for quite some time now, going on 6 years. I started LUA about 1 year ago, and to be honest, it's not looking that clear to me. Even with the knowledge from other scripting languages. I was making a custom leaderboard when I was using and Int Value to start a new section under my leaderboard, and I saw a bunch of different Values. But I think I have a pretty good grip on some, But the Bool Value and Int Value seem the same. Can anybody explain?

1 answer

Log in to vote
1
Answered by 8 years ago

I'm amazed that in 6 years of programming you don't know the different between a 'bool' and an 'int'.

A BoolValue can either be true (checked) or false (unchecked)

An IntValue holds an integer value

P.S - its 'Lua' not LUA

0
Thank you. Tredicle 30 — 8y
0
In 6 years of programming, I've never used Bool values or Int Values. I forgot to mension that in my question. But thank you for the answer. Tredicle 30 — 8y
1
Well granted you'd never come across the values as such but surely you've used booleans and had to convert possibly a string to a number using int? (Possibly in python) Uroxus 350 — 8y
Ad

Answer this question