Documentation

PT025 MOD NEQ EQ

Back to documentation index
{
  "@context": "https://nxdlang.org/schema",
  "doc_id": "PT025",
  "title": "MOD | NEQ | EQ",
  "description": "NXD Compiler Testing Notes - Nim",
  "layer": "Passed Tests",
  "category": "Passed Tests",
  "keywords": [Transpilation, Compiler, Nim], 
  "doc_version": "1.0",
  "status": "active"
}

# PT025 MOD NEQ EQ

### NXD Sample:

```nxd
MODULE TEST

FUNC MAIN()
    CONST A SET 10
    CONST B SET 3
    CONST C SET 0

    IF A MOD B NEQ C OR C EQ 0:
        PRINTLN("MOD_OR_PASS")
```

### Result:

COMPILER: PASS
SEMANTICS: PASS

Expected Output:

### Actual Output:

```nim
# test


proc main() =
  let a = 10
  let b = 3
  let c = 0
if a mod b != c or c == 0:
    println("MOD_OR_PASS")
```

###Notes: