篇一 :if用法小结

一、 if作为连词,引导条件状语从句,表示“如果...在复合句中如果...rong>主句用将来时,

则if引导的状语从句用一般现在时(最基本的)。

注:1.主句可以用祈使句来表示将来时,这时主句用一般现在时

2.是真理的话,前后都用一般现在时)

eg. If it doesn’t rain, we will go to the picnic next Sunday.

二、if还可以引导让步状语从句。在意义上相当于even if,even though或although。这时 if 意为“即使是”,“虽然”。

eg. I’ll do it, even if it takes me a long time. 虽然会花费很长时间,我还是要做这事。 If he is little,he is strong.他年纪虽小,力气倒大

三、ifwhether意思相同。例如: eg. She asked if / whether I like it. 她问我是否喜欢它。

* 此时注意:1. or not放在whether之后时,只能用whether不用if。

2. 在强调任意选择时,用whether…or,此时不用if替换whether

3. whether不用if 。

4. whether不用if。

5. 作discuss等动词的宾语时,用whether不用if。

6. 句子中有if“是否”whethe用if

7. whether不用if来表示“是否”。

基本上碰到选择 if 还是 whether 的问题时都选 whether,除了一条:如果...句为否定句时,则只用if不用whether。

eg.I don’t know if it won't rain tomorrow..我不知道明天是不是会下雨

…… …… 余下全文

篇二 :if的用法

一、if作为连词,引导条件状语从句,它表示的意思是“假如”“如果”等。在复合句中如果主句用将来时,则if引导的状语从句用一般现在时。例如:

1. If itdoesn’train, we will go to the park next Sunday. 如果天不下雨,下周星期天我们将去公园。

2. If you ask him,he will help you.如果你求他,他将会帮助你。

二、if还可以引导让步状语从句。这时if当作“即使是”,“虽说”解。例如:

1. If she’s poor,at least she’s honest. 虽说她很穷,但至少她还是诚实的。

2. If I am wrong,you are wrong, too. 即使说我错了,那么你也不对。

3. I’ll do it, even if it takes me all the afternoon. 虽然会花费我一下午的时间,我还是要做这事。

三、if作为连词还可以引导宾语从句。引导宾语从句时和whether意思相同。例如:

1. Lily asked if / whether she liked it. 莉莉问她是否喜欢它。

2. She asked if / whether they had a cotton one. 她问是否他们有一件棉织的。

四、if引导时间状语从句,当if做“当”或“无论何时”解而不含有条件之义时,if从句中的时态与主句中的时态相同。例如:

1. If youmix yellow and blue,you get green.你将黄色与蓝色混合,便会得到绿色。

2. If she wants the servant,she rings the bell.每当她需要仆人时,她便按铃。

五、if后接否定动词,用于感叹句中,表示沮丧、惊奇等。例如:

…… …… 余下全文

篇三 :if语句的用法

if是如果的意思,如果条件符合,即true,就执行代码,条件不符合的话,不执行或者执行其它代码.语法为:

if(条件){

//代码

}

if常和else用在一起,语法为:

if(条件){

//代码

}else{

//代码

}

if里的条件不符合,则执行else里的代码.如我们设定:

aa=5;

if(aa>1){

trace(">1");

}else{

trace("<1");

}输出结果为"<1".

情况一:

if(aa>1){

trace(">1");

}

if(aa>2){

trace(">2");

}

if(aa>3){

trace(">3");

}

如果aa=2的话,会输出">1";

如果aa=3的话,会输出">1",和">2";

同样,aa=4的话,输出">1",和">2"和">3"

情况二:如果只想输出一种结果则改为:

aa=4;

if(aa>1){

trace(">1");

}else if(aa>2){

trace(">2");

}else if(aa>3){

trace(">3");

}输出结果为">1",前面的条件符合了,后面的就不会执行.想上面代码达到我们想要的,改为: aa=4;

if(aa>3){

trace(">3");

…… …… 余下全文

篇四 :if的用法

1.if 可引导状语从句

如果...,假使...

a. [就现在,过去,未来可能实现之事加以推测时]

If you are tired, we will go straight home 如果你疲倦了,我们就直接回家

If you have finished reading this book, please return it to me 如果你念完这本书,请把它还给我

Do you mind if I open the window? 如果我打开窗子,你介意吗?

(我可以打开窗子吗? )

I shall tell him if he comes 如果他来了,我会告诉他

2. 用于虚拟语气中

a.If you knew how I suffered, you would pity me 如果你知道我多麽受苦,你会同情我

If I were you, I would help him 如果我是你,我会帮助他

b.If I had known, I wouldn't have done it 假使我知道,我就不会做那件事

If he had followed my advice, he wouldn't be in such difficulty now 如果他听从我的劝告,他现在就不会陷入如此的困境

c. If it should rain tomorrow, I shall not [shan't, won't] come 万一明天下雨,我就不来

3.if可引导宾语从句 ,"是不是..."基本等同于whether

Ask him if it is true 问他那是不是真的

I wonder if he is in the school 我不知道他是否在学校

一、后接动词原形

后接动词原形,表示“宁愿做某事”。如:

…… …… 余下全文

篇五 :英语中if的用法

1. (表示条件)如果 ,主句用将来时,if从句用现在时表示将来

He will come if you invite him.

如果你请他,他会来的。

2. (表示虚拟)假如,要是

1)时态:可以表示过去,现在和将来的情况。它的基本特点是时态退后。 a. 同现在事实相反的假设。

句型 : 条件从句主句

一般过去时should( would) +动词原形

If they were here, they would help you.

b. 表示于过去事实相反的假设。

句型: 条件从句主句

过去完成时should(would) have+ 过去分词

If she had worked harder, she would have succeeded.

The rice would not have been burnt if you had been more careful.

If my lawyer had been here last Saturday, he would have prevented me from going.

If he had come yesterday, I should / would have told him about it.

含义:He did not come yesterday, so I did not tell him about it.

If he had not been ill and missed many classes, he would have made greater progress. 含义: He was ill and missed many lessons, so he did not make greater progress.

c. 表示对将来的假想

句型: 条件从句主句

…… …… 余下全文

篇六 :if函数的使用方法

if函数的使用方法

函数:“=IF(A,B,C)”,意思是“如果A,那么B,否则C” 如“=IF(A1<60,"不及格","及格"),意思是“如果A1<60,那么‘不及格’,否则‘及格’”。有时候,情况不是这么简单,比如及格的成绩中又要分为“及格”“良好”“优秀”三个等级,这时就可以在C中重复应用函数IF。实际上,“=IF(A,B,C)”中的A、B、C三处都可以再用函数IF。

1、先认识函数语法:“=IF(要求的条件,满足条件的返回值,不满足条件的返回值)”。

2、第2层套嵌应在上述第2个逗号之后加IF(),第3层套嵌应在第2层套嵌括弧里的第2个逗号后添加IF()......最多可套嵌7层。这样也可以进一步理解上述第2项的“第2层套嵌应在上述第2个逗号之后加IF()”的意思。如:

=IF(A1<60,"不及格",IF(A1<75,"及格",IF(A1<90,"良好","优秀"))),等等。

if函数除了遵守一般函数的通用规则以外,还有其特有的注意事项:? 1 、括号必须成对,上下对应。?

2 、if函数有N个条件则有N+1个结果,即若结果只有3种情况的,那么条件只要2个就够了。?

3、 if函数最多允许出现8个返回值(结果),也就意味着,最多套用7个if 。?

4 、多个if嵌套时,尽量使用同一种逻辑运算符。即:统一使用大于号或者统一使用小于号。避免出现不必要的错误。?

5、 if是个好函数,很管用。他的格式是:=if(条件1,返回值1,返回值2) 。多个嵌套的格式:=if(条件1,返回值1,if(条件2,返回值2,if(条件3,返回值3,返回值4))) 。这里先写3层嵌套,4、5、6、7层同理。

…… …… 余下全文

篇七 :if的用法

重庆森博英语教育 地址:重庆江北观音桥中信大厦10—8

If的用法

1. (表示条件)如果 ,主句用将来时,if从句用现在时表示将来

He will come if you invite him. 如果你请他,他会来的。

2. (表示虚拟)假如,要是

1)时态:可以表示过去,现在和将来的情况。它的基本特点是时态退后。

a. 同现在事实相反的假设。

句型 : 条件从句 主句

一般过去时 should( would) +动词原形

If they were here, they would help you.

b. 表示于过去事实相反的假设。

句型: 条件从句 主句

过去完成时 should(would) have+ 过去分词

If she had worked harder, she would have succeeded.

The rice would not have been burnt if you had been more careful.

If my lawyer had been here last Saturday, he would have prevented me from going. If he had come yesterday, I should / would have told him about it.

含义:He did not come yesterday, so I did not tell him about it.

If he had not been ill and missed many classes, he would have made greater progress. 含义: He was ill and missed many lessons, so he did not make greater progress. c. 表示对将来的假想

…… …… 余下全文

篇八 :whether和if的用法区别

whether和if的用法区别

1)whether和if常用来引导宾语从句,这时两者的含义区别很小,一般可通用。例如: ①I don't know whether/if they will come to help us. 我不知道他们是否来帮助我们。 ②I am not sure whether/if I'll have time to go with you. 我很难说我们是否有时间跟你们一起去。 上面两句无区别。

但是,当whether与or not连成一个词组时,whether不可换用if。例如:

③I don't know whether or not they will come for our help. 我不知道他们是否要来求我们支援。

【注意】若whether和or not不连在一起,在口语中可以用if取代whether,当然也可以用whether。例如:

④I am not certain if/whether the train will arrive on time. 我没有把握火车是否准时到达。

⑤I don't care if/whether your car breaks down or not. 我不在乎您的车是否是会出故障。 此外,还有三种情况值得注意:

(1)在介词后面只能用whether,不能用if。例如:

①This depends upon whether we are determined to do it. 这件事要看我们是否有决心去做。

②It depends on whether he is ready. 这件事要看他是否有准备。

③I am not interested in whether you'll come or not. 你来不来我不感兴趣。

④We haven't settled the question of whether we'll renew our supplies of coal for factory.

…… …… 余下全文