metashade icon indicating copy to clipboard operation
metashade copied to clipboard

Implement `if`/`else` statements

Open ppenenko opened this issue 3 years ago • 0 comments

Should look something like

with sh.if_( sh.a < sh.b ):
    sh.c = sh.a
with sh.else_:
    sh.c = sh.b

Scopes of the branches should be easy to implement similar to scopes of function bodies. Boolean conditions would require Boolean types.

ppenenko avatar Sep 14 '22 23:09 ppenenko