In php I could do something like this:
if (balance == 0 && !neverBought)
Where balance comes from an API and is a string.
In C# I tried to convert balance to int as shown below:
if (int.Parse(balance) == 0 && !(neverBought))
But I get Exception Details: System.FormatException: Input string was not in a correct format.
What am I doing wrong?