For this application, I’d recommend the Column Expressions node. The syntax would be javascript. See this post for details.