nohandlesleft254
IS-IT--Management
Hi,
Can anyone explain why im such a muppet!? this keeps running the 'else' regardless...
* AddItem.Depth is a input text field
* TotalPrice is set at start of function
Thanks
if (AddItem.Depth != <cfoutput>#FindItems.Depth#</cfoutput>)
{
// If the depth has been reduced
if (AddItem.Depth < <cfoutput>#FindItems.Depth#</cfoutput>)
{
TotalPrice = (TotalPrice+25)
}
else if (AddItem.Depth > <cfoutput>#FindItems.Depth#</cfoutput> && AddItem.Depth < <cfoutput>#FindItems.Depth#</cfoutput>+100)
{
TotalPrice = (TotalPrice+10.50+6)
}
else
{
TotalPrice = (TotalPrice+60)
}
}
Can anyone explain why im such a muppet!? this keeps running the 'else' regardless...
* AddItem.Depth is a input text field
* TotalPrice is set at start of function
Thanks
if (AddItem.Depth != <cfoutput>#FindItems.Depth#</cfoutput>)
{
// If the depth has been reduced
if (AddItem.Depth < <cfoutput>#FindItems.Depth#</cfoutput>)
{
TotalPrice = (TotalPrice+25)
}
else if (AddItem.Depth > <cfoutput>#FindItems.Depth#</cfoutput> && AddItem.Depth < <cfoutput>#FindItems.Depth#</cfoutput>+100)
{
TotalPrice = (TotalPrice+10.50+6)
}
else
{
TotalPrice = (TotalPrice+60)
}
}