docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Or (Logic)

    Menu Path : Operator > Logic > Or

    The Or Operator takes two inputs and outputs the result of a logical or operation between them. The result of A Or B is true if either A or B is true. This Operator is equivalent to the C# || operator.

    Operator properties

    Input Type Description
    A bool The left operand. If this is true then o is true.
    B bool The right operand. If this is true then o is true.
    Output Type Description
    o bool If A or B is true, this value is true. Otherwise, if both A and B are false this value is false.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)