Hi,
For your sum calculation, you can use a predefined function.
In array widget, set a column to number input, and check footer.
There you should see option to use predefined function, and it has Sum.
Please refer to this article in documentation, your configuration should be the same as "sub total" column.
As you can see, please set both the 'listen to variable' and 'Parameter' to your array_variable.number_variable
And also, please set initial value to 0, so that calculation will happen correctly at beginning.
Then, from your script, you can use that footer variable and place business rules (==100) in your pre-launch script.
Best regards,
Taka