So, I've got this little Condition script:
On True
This will add a line to my .csv file with all the correct parts, but then it saves another line with the $Operator field as "None" and no job or part fields. Not even blank cells, the RealToString() entries are shifted two cells to the left.
So I get something like this for every entry:
2024-11-26 16:15, Bob, Machine1, Acme, Widget, 123.45, 543.21, 152.43
2024-11-26 16:15, None, Machine1, 123.45, 543.21, 152.43
Any ideas why?
On True
Code:
string_to_save = datetime + "," + $Operator + "," + "Machine1," + job + "," + part + "," + RealToString(w1) + "," + RealToString(w2) + "," +RealToString(w3)
FileWriteMessage(path, -1, string_to_save, 1)
This will add a line to my .csv file with all the correct parts, but then it saves another line with the $Operator field as "None" and no job or part fields. Not even blank cells, the RealToString() entries are shifted two cells to the left.
So I get something like this for every entry:
2024-11-26 16:15, Bob, Machine1, Acme, Widget, 123.45, 543.21, 152.43
2024-11-26 16:15, None, Machine1, 123.45, 543.21, 152.43
Any ideas why?