How to ignore whitespaces in fuze?
-
Chr(32) is the code for a space or you could just use " "
If it equals that move to next character in string -
@xevdev thanks.
-
@petermeisenstein You should probably do the same for the tab character (ASCII 9)
-
@pianofire i know that in python exist this little letter for example " \n" is new line and there is also a r who i think ignores whitespaces. But this doesnt exist in fuze right
-
@petermeisenstein \n does indeed work for a new line
-
@pianofire Are there other of these special letters in fuze
-
I don't think so
-
Well I didn't know that I've been using print(chr(10)) for a new line
-
@pianofire Can I also do?
new_line="\n"
print("hello world")
print(new_line)
print("lol")
update() -
@petermeisenstein I think so try it! But you can definitely do print("hello world\n")
-
@pianofire Ok final question how can i print \n as a string
so to output \n -
print(chr(0x5c), "n")
is one way -
@Martin thanks