note
wip: opt nested if with eq conditions