Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | binkiklou | |
Old Version | Published before Godot 3 was released. |
Hello, I’m trying to make dialogs for my games and I would like to know how doing something like if a == true A is my variable. I tried if (A == true): but it kept making errors. Please help me.
That seems correct to me, so the error probably is not in that piece of code. Can you put more about the context and the error messages you have?
garred | 2016-11-06 19:00
if you are using a Boolean variable you can simple say
if a:
some code here :)
since the == return a Boolean just like the Boolean variable
rustyStriker | 2016-11-06 20:06
It keep saying Expected intended block after ‘if’
binkiklou | 2016-11-06 20:17
Indented, not intended. In Python and GDScript you have to indent blocks, as rustyStriker and eons told you.
garred | 2016-11-06 20:44