Added a new method to use inline conditionals. Added tests