Activity Forums Salesforce® Discussions How to use debug log in "if" statement in Salesforce?

  • shradha jain

    Member
    July 27, 2018 at 9:49 am

    Hello Chanchal,

    You can  use debug log in “if” statement by writing Debug.log("message"). Here is an example-

    if (gameObject != null)
    {
    Debug.Log("The gameObject is NOT null");
    }
    else
    {
    Debug.Log("The gameObject IS null");
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos