ConfirmIt Open text length validation

Check if the length of the provided answer is lower than 5.

//surveyscripting.com

var q : String = f('Q1').get();

if (q.Length < 5) {
  RaiseError();  
  SetErrorMessage(LangIDs.en, "Please provide minimum 5 symbols!");
}