| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  Parsing/Evaling to return true or false 
			
			Say I had fields in a database that had: PHP Code: 
			PHP Code: 
			PHP Code: 
			So if $sysstat equaled 2, then obvisously $sysstat == 1 would return false. How would I go about doing this? Thankyou. | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			you just have to get em out of the db, whenever you use $blabl == blabla it will return true or false automatically
		 | 
| 
			 
			#3  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Well, whenever I do parse it to a function for the actual processing, it always ends up turning out from: "$blahblah == 1" to "$1". Everything returns "$1". Alcar... | 
| 
			 
			#4  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			$1 isn't a legal variable name, how can anything return it?
		 | 
| 
			 
			#5  
			
			
			
			
			
		 | |||
| 
 | |||
|   Quote: 
 I'm actually taking apart a piece of text using: PHP Code: 
			Thankyou, Alcar... | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |