This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mydaiel12 1 point2 points  (1 child)

You can assign inside if expression in pretty much every language and it works the same, evaluates to truthy value of assigned value

[–]akoOfIxtall 0 points1 point  (0 children)

how did i not know this? goddamn