Inclusions in PHP

Will the file be included using include when compiling the script – I will surround this include with a condition:

if() {
    include(file);
}

If the condition is not met, will file be included?


Answer 1, authority 100%

No, it won’t connect. This is a function, not a directive.


Answer 2, authority 100%

will be loaded only when the condition is met


Answer 3, authority 33%

<php
   $ok = 'true' ;
     if($ok == 'true'){
      // $ok = true  :
       echo ' ';
        }else{
         // $ok   true  :
          include('file.php')
       }
           ?>