Hi to everyone and sorry for my question,  I would like to use IF in an example
like this:
If((condition1 and condition2) Or (condition 3 and condition4)) {print uhvef}
BUt I don´t know how to write it correctly,
Thanks in advance 		 	   		  
	[[alternative HTML version deleted]]
Hello,
and is && ; or is || ; and print() needs the parenthesis around its
argument
if((condition1 && condition2) || (condition3 && condition4))
{print(uhvef)}
Hope this helps,
Rui Barradas
Em 29-08-2013 09:16, M? Teresa Martinez Soriano
escreveu:> Hi to everyone and sorry for my question,  I would like to use IF in an
example like this:
>
>
> If((condition1 and condition2) Or (condition 3 and condition4)) {print
uhvef}
>
>
> BUt I don?t know how to write it correctly,
>
> Thanks in advance 		 	   		
> 	[[alternative HTML version deleted]]
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
Hey
if  (( (1==1) && (2==2) ) || (3==3)) {  print( "hello world")
}
-------------------------------------------------------------------------------------
- László-András Zsurzsa,                                                -
- Msc. Infromatics, Technical University Munich, Germany -
- Scientific Employee, TUM                                             -
-------------------------------------------------------------------------------------
On Thu, Aug 29, 2013 at 11:11 AM, Zsurzsa Laszlo
<zsurzsalaszlo@gmail.com>wrote:
> Hey
>
> if  (( (1==1) && (2==2) ) || (3==3)) {  print( "hello
world") }
>
>
>
-------------------------------------------------------------------------------------
> - László-András Zsurzsa,                                                -
> - Msc. Infromatics, Technical University Munich, Germany -
> - Scientific Employee, TUM                                             -
>
>
-------------------------------------------------------------------------------------
>
>
> On Thu, Aug 29, 2013 at 10:16 AM, Mª Teresa Martinez Soriano <
> teresamarso@hotmail.com> wrote:
>
>> Hi to everyone and sorry for my question,  I would like to use IF in an
>> example like this:
>>
>>
>> If((condition1 and condition2) Or (condition 3 and condition4)) {print
>> uhvef}
>>
>>
>> BUt I don´t know how to write it correctly,
>>
>> Thanks in advance
>>         [[alternative HTML version deleted]]
>>
>>
>> ______________________________________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
	[[alternative HTML version deleted]]
In addition to the other suggestions, try typing
  help('&')
-Don
-- 
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 8/29/13 1:16 AM, "M? Teresa Martinez Soriano" <teresamarso at
hotmail.com>
wrote:
>Hi to everyone and sorry for my question,  I would like to use IF in an
>example like this:
>
>
>If((condition1 and condition2) Or (condition 3 and condition4)) {print
>uhvef}
>
>
>BUt I don?t know how to write it correctly,
>
>Thanks in advance 		 	   		
>	[[alternative HTML version deleted]]
>