Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2006, 02:37 PM
JustBreathe JustBreathe is offline
Registered User
Join Date: Jun 2006
Posts: 59
JustBreathe is on a distinguished road
Stefan: Seems like your post was deleted.

( talked about converting to float and bool )

Couldn't you work it out with type() ?
PHP Code:
function eval( var )
  {
  switch( var.
type() )
    {
    case 
0:
      return var != 
false;
    case 
1:
      return var != 
"";
    case 
2:
      return var != 
null;
    case 
3:
      return 
true// ... Just saying it has a type array means it exists!
    
}
  } 
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.