How can we update tag stored value in firebase .Need help

if tag is result and value stored is fail. Now if i use statement in app that:
if marks > 33 then value stored in tag result changes from fail to pass.How i can do it. Can i use store value block to update value or data changed block by calling firebase database.