Read Length of Strings (#10611)

* added ability to sense length of charsequences

* documentation

* Update core/assets/bundles/bundle.properties

Co-authored-by: Jason <131086642+JasonP01@users.noreply.github.com>

---------

Co-authored-by: Anuken <arnukren@gmail.com>
Co-authored-by: Jason <131086642+JasonP01@users.noreply.github.com>
This commit is contained in:
1ue999
2025-04-08 17:48:11 +02:00
committed by GitHub
parent 3096397fd3
commit ba21959c15
2 changed files with 5 additions and 0 deletions

View File

@@ -652,6 +652,10 @@ public class LExecutor{
}
}
}else{
if(target instanceof CharSequence seq && sense == LAccess.size){
to.setnum(seq.length());
return;
}
to.setobj(null);
}
}