Skip to content

Null Operation

Null Operation

If you want to have a null operation so nothing happens when a certain case is met we can use pass

def onValueChange(channel, sampleIndex, val, prev):
    if val < 0.8:
        pass
    else:
        op('constant1').par.value0 = val
    return