Read-Only depending on status

Want to change a field in XPages with read-only depending on the status of the field status. If the field contains either the value of 5 or 35 shall be able to change, otherwise only be readable.

Tried this but it works not

tmp = getComponent(“status”).getValue();

@If(tmp != “5” || tmp != “35”)

Regards

Fredrik

Subject: SOLVED

tmp = getComponent(“status”).getValue();@If( tmp == “5” || tmp == “35”, false, true)