else if-block 否则若块
There will be an else code block that will follow this with the initial form code in it.
还有其他代码块在其中跟随初始表单代码。
Until then, what else can we do with anL-shaped block?
我们能用一个L型的方块做什么呢?
In this case, you're using a simple if... Else block to see whether any value stored in the state is accessible via the random key.
在本例中,我们用一个简单的if . . . else块来判断在状态中保存的值是否可通过random键访问。
-- Else if n is greater than 4 and n is less than 6 -- 7 let's call it medium -- else if n is greater than or equal to 7, -- less than or equal to 10 -- let's call it "big" -- and if the user typed in zero or negative 10 or 20 or whatever, let's just use the all-inclusive else block and just say, "You picked an invalid number."
否则如果n大于4,并且n小于-,我们叫它为中间数--否则如果n大于等于,小于等于10--我们叫它为“大数“,如果用户键入了0或者-10或20或其它的,让我们用一个广泛的else子句,只需要说,“你选了一个非法的数字“
应用推荐