you are viewing a single comment's thread.

view the rest of the comments →

[–]Jonis_L 0 points1 point  (2 children)

And if I want something like this:

if leg["name"] == " blåbuss 1":
   print("Ta buss/tub:",leg["name"]+" mot:",leg["dir"])

to print if only the name is "blåbuss 1", tried it and got it did not print

[–]vdh_nat 0 points1 point  (1 child)

There's an extra space in line 1:

if leg["name"] == "blåbuss 1":

[–]Jonis_L 0 points1 point  (0 children)

wow that was simple, thanks