Define cPath with ternary operator