My code seems to run as intended reconfiguring the Normal as I want it to. Except during the last iteration over the last point. Trying to debug the problem by putting print statements in both the if and else clause. But for some reason it is not showing the statements inside of the if else clause, but outside of them they print as intended. Probably missing something elementary here...
Sometimes, it's easier to assign your debug into to an attribute instead of printing it. Then you can examine the value per-point inside the geometry spreadsheet.
s@debug = sprintf("%f",999);
Using Houdini Indie 20.0 Windows 11 64GB Ryzen 16 core. nVidia 3050RTX 8BG RAM.