Condition to logic

Posted by nandona on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Condition-to-logic-tp4034355.html

Im currently trying to do mux and I have a really hard time going from out = a if sel == 0 else b

Like I cant figure out how to determine whats the value of sel