I'm not sure what you are trying to achieve here, but that logic will result in the if
statement always being false, since just prior to it you set
var myText = "";
thus it's length will ALWAYS be zero.
Also, as mentioned before, please always use a Code Block with scripts/code. I have fixed your above post this last time.