[Tutorial] Directives #if, #else, #elseif ,#endif et #error
#4

Buthers;3438133 Wrote:
PHP Code:
#define MonInfo 3

if(MonInfo &lt5)
{
    print(
"MonInfo insuffisante !");
}
else
{
    print(
"MonInfo suffisante !");


Ce code te gйnйrera un warning car ta condition sera toujours vraie.
Reply


Messages In This Thread
Directives #if, #else, #elseif ,#endif et #error - by Buthers - 22.04.2015, 19:30
Re : Directives #if, #else, #elseif ,#endif et #error - by Smocky - 22.04.2015, 19:34
Re : Directives #if, #else, #elseif ,#endif et #error - by Buthers - 22.04.2015, 19:56
Re : Directives #if, #else, #elseif ,#endif et #error - by Dutheil - 22.04.2015, 20:11
Re : Directives #if, #else, #elseif ,#endif et #error - by Buthers - 22.04.2015, 20:18
Re : Directives #if, #else, #elseif ,#endif et #error - by S4t3K - 25.04.2015, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)