armory/Sources/armory/logicnode/LengthStringNode.hx
2019-12-19 23:54:08 +01:00

16 lines
271 B
Haxe

package armory.logicnode;
class LengthStringNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function get(from: Int): Dynamic {
var s: String = inputs[0].get();
if (s == null) return null;
return s.length;
}
}