0

Yes/no condition in formula field

This script won't work

if Test = true then
'A pagar' = 'Tipo de licencia'.Precio + 'Tipo de socio'.Precio + 'Tipo de licencia'.Precio
else
'A pagar' = 'Tipo de licencia'.Precio + 'Tipo de socio'.Precio
end

Test is a Yes/No, and A pagar is a formula field. What is wrong?

Thanks

1 reply

null
    • Mconneen
    • 5 yrs ago
    • Reported - view

    You use "=" to test for equality...    You use ":=" for assignment .. 

    I am confused by your second line.. Are you testing for equality ?? or do you want to do an assignment if "Test is true".   Assuming the later, you cannot assign values to a "formula field"...  At least not that I am aware of. 

Content aside

  • 5 yrs agoLast active
  • 1Replies
  • 1407Views