Cannot compare nullable (option) variable with true.

  1. This is for you to print the value so you can see it’s type is ?int (not boolean). Because this type can hold an optional integer you almost always want to store something you may need to use later. If you do not need to know specific integer, simply use the logic type instead (boolean).

  2. If you can’t get the value then it is false.