Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Correctly handle "if/else if/else" - #82

Merged
skx merged 1 commit into
masterfrom
if-else
Jun 11, 2021
Merged

skx merged 1 commit into
masterfrom
if-else

Conversation

@skx

@skx skx commented Jun 11, 2021

Copy link
Copy Markdown
Owner

The following program now works correctly:

    if (1 + 1 == 3) {
        puts( "what is reality\n" );
    } else if ( 1 + 1 == 2 ) {
        puts( "math is logical.\n" );
    } else {
       puts( "OK\n");
    }

The following program now works correctly:

```
    if (1 + 1 == 3) {
        puts( "what is reality\n" );
    } else if ( 1 + 1 == 2 ) {
        puts( "math is logical.\n" );
    } else {
       puts( "OK\n");
    }
```
@skx
skx merged commit 97c31ea into master Jun 11, 2021
@skx
skx deleted the if-else branch June 11, 2021 03:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant