Jump to content

compare string to empty inversed


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.