• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Loops
#8
(2019-05-28, 09:00 PM)Stanislav Wrote:
(2019-05-28, 03:01 PM)Y_Less Wrote: Possibly the only good feature from Python is `for/else`. ?In pawn syntax:

PHP Code:
for (new 0!= 10; )
{
? ?if (
Something(i))
? ?{
? ? ? ?break;
? ?}
}
else
{
? ?
SomethingFailed();
}
// `break` jumps to here. 

The `else` block is only run if the loop exited without calling `break`, i.e. ended normally. ?I'm sure there's a way to fake or mimic it.

Im sorry if im deviating the topic but, why "the only good feature"?

He meant the only good feature that can translate to pawn and be useable (I think that's what he meant)
Remember to always refer to J0sh as `J0sh...`



@ Networks/Servers

San Andreas Gaming Network (Owner/Founder)

San Andreas Gaming (Owner/Founder)

Grand Theft Cop's n Robber's (Owner)

Britannia Roleplay (Owner/Founder) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply


Messages In This Thread
Loops - by Cubie - 2019-05-28, 12:49 PM
RE: Loops - by SyS - 2019-05-28, 02:12 PM
RE: Loops - by hual - 2019-05-28, 02:29 PM
RE: Loops - by Cubie - 2019-05-28, 02:33 PM
RE: Loops - by hual - 2019-05-28, 02:38 PM
RE: Loops - by Y_Less - 2019-05-28, 03:01 PM
RE: Loops - by Stanislav - 2019-05-28, 09:00 PM
RE: Loops - by JustMichael - 2019-05-28, 09:02 PM
RE: Loops - by Y_Less - 2019-05-28, 11:28 PM

Forum Jump: