How to logically build a

Thinksamuel's icon

Thinksamuel

9月 05 2024 | 8:39 午前

I have a javascript object with which I can fetch data from a server. Sometimes the server is down and in that case, I get an error. I would like that if it returns an errorm it send out the ast received datapoint (a float) again.

My current flow is message wth URL --> js object --> float

Max Patch
Copy patch and select New From Clipboard in Max.

TFL's icon

TFL

9月 05 2024 | 8:53 午前

The js code is missing.

I don't know how you do the fetching on the server, but I guess there must be a way to handle the error, in which case you could simply output the last received float that you would have stored in a variable.