And none of the ifs will ever run because (example) the string "a" does ot equal "blabla" in [if "a"=="blabla"]. also, string variables should always end in a "$".