Skip to content


 Zabbix
 Grafana
 Prometheus
 React Three Fiber
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$6.99 $9.99 Paperback 
$22.99 $29.99




Design Patterns in TypeScript
Kindle Edition
$6.99 $9.99 Paperback
$11.99 $19.99




Design Patterns in Python
Kindle Edition
$6.99 $9.99 Paperback
$11.99 $19.99




Item Preprocessing with JavaScript

Video Lecture

Item Preprocessing with JavaScript Item Preprocessing with JavaScript

Description

This is the script used in the item preprocessor

1
2
3
4
5
6
7
8
9
var lines = value.split("\n");
var lineZero = lines[0];
var accountName = "";
lines.forEach(function (line) {
  if (line.trim().substring(0, 13) === "Account Name:") {
    accountName = line.substring(14).trim();
  }
});
return accountName + " : " + lineZero;

JavaScript preprocessing

Item value preprocessing