I'm kinda having a hard time understanding how 'the basic types' work. I'm having a hard time understanding booleans and integers.
For example, what is this supposed to do in this piece of code? How does the script know, for example, that I will equal 3 or if I is another number? (from the simba tutorial)
Simba Code:
procedure Example;
var
i: Integer;
tempString: string;
begin
end;
What are strings supposed to do when called in a procedure?
I also don't understand this piece of code on booleans:
Simba Code:
// Good
var
DoesBank: Boolean;
How is it supposed to know if it's true or false? Can booleans only be true, or does it have to have both true and false statements?
Sorry if this is too much to ask / if I'm not making sense. I'm just not understanding this. If anyone can reword the four basic types in laymen's terms, I would appreciate it.
Thanks