如果(某事等于某事)停止在代码之下 - 帮助慢跑大脑 [英] If(something equals something) stop below code - Help Jogging Brain

查看:75
本文介绍了如果(某事等于某事)停止在代码之下 - 帮助慢跑大脑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




现在,我确定你会读到这个问题并认为这个人是个白痴,你很可能是对的。



但是在我的代码中我们都知道当你点击一个按钮时,点击按钮的代码就会激活。我在本节中添加了多个不同的if循环。



我忘了怎么办(如果一个if循环相等)然后停止按钮点击中的其余代码并停止其他任何不同的循环执行。我通常知道如何做到这一点,但我的思绪已经消失:/



请慢慢记住我的记忆。 :)

Hi
Now, im sure you are going to read this question and think this guy is a idiot, you are most likely right.

However in my code as we all know when you click on a button the code for the button click fires up. I have put multiple different if loops in this section.

What i have forgot how to do is (if one if loop is equal) then stop the rest of the code within the button click and stop any other of the different loops from executing. I know normally how to do this but my mind has blanked :/

Please jog my memory. :)

推荐答案

if (something == somethingelse)
    return;





应该这样做......



但如果没有,你将不得不分享你的代码。



That should do it...

But if it doesn't, you will have to share your code.


这篇关于如果(某事等于某事)停止在代码之下 - 帮助慢跑大脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆