Hi!
I have a field in a view that depends on the values of two other fields and I need to show diferent values.
My if condition is:
- if (input.Preco_jumbo > input.Preco_continente)
- {
- Mais_barato = "Continente";
- }
- else
- {
- Mais_barato = "Jumbo";
- }
My question is where should be this statement? In the form field associated to an action like on add/edit or in the view script?