| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| sir_mane Guest
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| Logical OR operator, how? |  
				|  Posted: Tue Jun 29, 2004 12:07 am |   |  
				| 
 |  
				| Hi. 
 Simple question; what is wrong?
 
 if (( A==1 ) && (( B==1 ) ll ( C==1 )))
 
 error: Expecting a close param
 
   
 How OR operator works?
 
 Regards
 Sir_mane
 |  | 
	
		|  | 
	
		| PCM programmer 
 
 
 Joined: 06 Sep 2003
 Posts: 21708
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Tue Jun 29, 2004 12:41 am |   |  
				| 
 |  
				|  	  | Quote: |  	  | if (( A==1 ) && (( B==1 ) ll ( C==1 ))) error: Expecting a close param
 | 
 You don't have the "vertical line" character in there.
 You've got lower-case "LL" in there.  You can see
 this if you display that line with the Code tags on
 this board.  The Code tags use the Courier font:
 
  	  | Code: |  	  | if (( A==1 ) && (( B==1 ) ll ( C==1 ))) | 
 You need to use a font in your C editor that shows the
 difference between between a  lower-case L and
 the vertical line symbol.    Don't use Arial.
 Use Courier or Fixed Sys or something like that.
 |  | 
	
		|  | 
	
		| sir_mane Guest
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				| Thanks. |  
				|  Posted: Tue Jun 29, 2004 12:50 am |   |  
				| 
 |  
				| I copy => paste that from ccs help and it give ll ( lower-case "LL" ).
 so I didn't know that it should be
 vertical line symbol.
 
 Now it's working.
 Thank you PCM programmer
 Again...
 |  | 
	
		|  | 
	
		| Laurent Chouinard 
 
 
 Joined: 12 Sep 2003
 Posts: 43
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Tue Jun 29, 2004 11:20 am |   |  
				| 
 |  
				| In my opinion, the best font for coding: 
 Profont
 
 Of course, for this one, it's recommended to have an LCD display or a CRT of good quality (sharp). With this font you can pack quite a lot of highly readable code at 8-pixels size, and it shows all the similar characters to be quite different, like the number one, the letters i and L.
 |  | 
	
		|  | 
	
		|  |