Hi @Thomas1988 , glad you got it working. The whole object thing with java can seem odd, but the use of != is literally asking hava if the c_TotalRecords object is the same as the c_Total object (i.e. does it occupy the same address in memory), so it is ok to use with primitive datatypes such as basic int variables, but
but shouldn’t be used to check equality of actual Objects e.g. full blow Integer objects which is what c_TotalRecords and c_Total are.
Of course the challenge is that because of the way java snippet handles the creation of objects etc behind the scenes, it isn’t immediately apparent that these are Integer objects and not primitive int datatypes. So I am still curious why it worked at all with my code, when I used it. I’ll try to investigate that further at some point because something doesn’t feel quite right there. So yes it is quite odd!
Re viewing the console, the console viewer is obviously not (yet?) available directly as a window in Modern UI, but there are some workarounds which I have discussed in the another thread (linked here) which may be of interest.