Question: I'm a bit stuck: I am trying to perform an if statement comparing a label.text that originally has a currency string created from `.ToString("C");`

and a decimal. I have tried converting the label to decimal since I'm going to be comparing it to a decimal but it keeps triggering an exception: 

> 
> Input string was not in a correct format.
> 
> 
> 

here is my current code:

```
if(Convert.ToDecimal(SomeLabel.Text) > 1000.00m) { //DO SOMETHING } 
//SomeLabel.Text has a value of $1000.00

```

Answer: 
Take the Dollar Sign off of your text first:

Source: $1000

```
double result = 0M;
String value = SomeLabel.Text.Substring(1);
if (Double.TryParse(value, out result)) {
    //
}
return result;

```
Try this

```
if(decimal.Parse(SomeLabel.Text) > 1000.00m)
{

}

```