2 of 2 replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/

Mouse-2002, 23 bytes


Switches on two inputs, which each should be either 0 for false or anything else for true.

Ungolfed, as a function:


$Y 1% a: 2% b:
  a [
    b [

Brackets just test if the top of the stack is true, and | is else.

This is a translation of @Cᴏɴᴏʀ O'Bʀɪᴇɴ's ES6 answer.