@rdeardorff Seems like getting item at string index needs to be different in the current version (2.1)
See if this works…
MarkFormat-20180923.dyn (12.4 KB)
//Returns true only for Upper Case Letter
def chkLet(s:string)
{
return=DSCore.Object.IsNull(String.ToNumber(s))?
(String.ToUpper(s)==s?true:false):false;
};
//Returns true only if format is AAA-11-A11
def markFormat(s:string){
return=(String.Length(s)!=10)?false:
(((String.Substring(s,3,1)!="-")||
(String.Substring(s,6,1)!="-"))?false:
((chkLet(String.Substring(s,0,1))!=true||
chkLet(String.Substring(s,1,1))!=true||
chkLet(String.Substring(s,2,1))!=true||
chkLet(String.Substring(s,7,1))!=true)?false:
((chkLet(String.Substring(s,4,1))||
chkLet(String.Substring(s,5,1))||
chkLet(String.Substring(s,8,1))||
chkLet(String.Substring(s,9,1)))?false:true)));
};