statement_if.sol 242 B

123456789101112
  1. contract Foo {
  2. function foo(uint32 n) public {
  3. if (n > 10) {
  4. // do something
  5. }
  6. // ERROR: unlike C integers can not be used as a condition
  7. // if (n) {
  8. // // ...
  9. // }
  10. }
  11. }