I am writing a script for an Alfred workflow. However, the string comparison never evaluates true.
The "{query}" inside the script does get replaced with a correct ctext value type which I can obverse using display dialog "{query}" and display dialog class of "{query}".
if "{query}" is equal to "a" then
say "in the a case"
else
say "in the else case"
end if
I have also tried use if "{query}" = "a" then but still have the same outcome.
The evaluation keeps falling to the else statement.
I am referring the article below when writing the conditional statements.
http://computers.tutsplus.com/tutorials/if-and-if-else-applescript-conditional-statements--mac-45590