8000 Add it-then-else operator to Booleanizer · Issue #13 · R2U2/r2u2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add it-then-else operator to Booleanizer #13
Open
@cgjohannsen

Description

@cgjohannsen

An if-then-else operator takes in three arguments: one bool and two of any other type (so long as they have the same type). We'll use the standard ?: C-style syntax.

For example, this would allow us to have the following C2PO file:

INPUT
b0: bool;
i0, i1: int;

FTSPEC
(b0 ? i0 : i1) > 0: 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0