How to use if order?

hello everyone
i’ve created deck for german language and need to know how use (if order)

i have created a field name ‘gender’ and wanna have an order when i write ‘m’ in gender field, then background become to blue color. is there any way to make this happen?
thanks

Try adding this to the Front and/or Back Template of your cards

<script>
var gender = "{{text:gender}}"

if (gender == "m") {
    document.body.style.backgroundColor = "blue";
} 
</script>