$select = array('*', 'sum(tbill.tqty) as msi');
$q = $this ->db->select($select)
->where('tbill.stkey',$stkey)
->where('tbill.tdate >=', $start_of_week)
->where('tbill.tdate <=', $end_of_week)
-> from('products')
->join('tbill','products.productid = tbill.titemid')
-> group_by('products.productid')
-> order_by('msi', 'DESC')
-> limit(1)
-> get();
return $q;
**我尝试退出()首先如果条件,继续下一个IF条件,但不能继续下一个IF条件完全退出整体请修复我的问题谢谢**
答案 0 :(得分:2)
如果要运行第二个if语句
,则无需使用else条件# load the labels using pandas
labels = pd.read_csv("bees/train_labels.csv")
#Set bumble_bee to one
for index in range(len(labels)):
labels[labels['bee_type'] == 'bumble_bee'] = 1
答案 1 :(得分:0)
这个想法怎么样。
<?php
$var1="exit";
$var2="run";
$var3="go";
if($var1 != '' && $var2 != '' && $var3 != '' )
{
if($var2 == 'run'){
echo 'run';
}
elseif($var3 == 'go'){
echo 'go';
}
elseif($var1 == 'clear'){
echo 'clear';
}
else {
exit();
}
}
答案 2 :(得分:0)
仅在使用return
$var1="exit";
$var2="run";
$var3="go";
if($var1 != '' && $var2 != '' && $var3 != '' ){
//first condtion
if($var1 == 'clear'){
echo 'clear';
}else {
return;
}
//2nd condtion
if($var2 == 'run'){
echo 'run';
}else {
return;
}
//3rd condtion
if($var3 == 'go'){
echo 'go';
}else {
return;
}
}