Added a condition and an expression to get/test the selected text