WIP: logic operations and inline if