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? 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now