Variable not define

Variable not define

I would like some help with the following Deluge code that comes back with error " Variable not defined"

if(row.Type_of_currentcy.Type_of_currentcy.contains("HT"))
{
row.Total_Resquest=row.Total_Price /Advance_Exchange_Rate;
}

The field "Type of currency" is a drop-down with two options, including HT. I want when HT is selected for the "Total request" field to be the "Total price field" divided by the "Avance Exchange Rate"
Thanks