Apologies to any non-programming followers for exposing them to this mess

And double apologies to programming followers who can recognize exactly why I felt the need to share this mess that I am currently writing ;_;

double amount = 0;
if(amountIt->asString() == “Unlimited”)
{
        amount = 99000000000; // Magic number fom database – corresponds to “Unlimited”
}
else
{

       

amount = amountIt->asDouble();
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s