vendredi 8 février 2019

In Solidity, what does | mean in the context of "if"?

I see an if statement in Solidity that looks like this:

    // Set a flag if this is an NFI.
    if (_isNF)
      _type = _type | TYPE_NF_BIT;

What does the | mean? Usually it means "or", but it doesn't make sense to me here...

Aucun commentaire:

Enregistrer un commentaire