// some functions above
loop
if not IsStringInteger(SubString(inputVal[1],i,i+1)) then
call BJDebugMsg("Valid Command - Invalid Inputs")
set inputNotValid[1] = true
exitwhen true
endif
set i = i + 1
exitwhen i == inputValLength[1]
endloop
// some function below