I am trying to use an if in my report using a variable as the condition this is what I tried IIF(<Client> = true, "Solde: " + [Solde], "Rendu: " + [Rendu])
but I get the error "undeclared identifier 'Client'"
frxReport1.Variables['Rendu'] := Versement - TotalAmount - Remise;
frxReport1.Variables['Solde'] := SoldClient;
frxReport1.Variables['Client'] := ClientTrue; //ClientTrue is a boolean