wasikhetmaar Posted July 21, 2015 Report Share Posted July 21, 2015 Hello, I'm trying to compare a string to an empty string. When the string is NOT empty, a counter should increment. First I tried to do this with a not contact between the compare and the increment, this gave the problem that it kept incrementing. It didn't stopped after one runtime it kept going. Does someone know a better inverse method? One ugly solution that I have found is to increment before the compare and decrement if it is true. Does anyone have better options? Quote Link to comment Share on other sites More sharing options...
Gugulanov Posted July 22, 2015 Report Share Posted July 22, 2015 Hi, There is another way: In one rung you will have a positive transition contact for test, then function "String length", then compare string length with 0, if length is bigger then zero, increment a tag. Regards 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.