2019-05-28, 09:02 PM
(This post was last modified: 2019-05-28, 09:03 PM by JustMichael.)
(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 i = 0; i != 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...`
# Services/Platforms
forum.open.mp (Forum Manager)
open.mp (Member)
Pawn Playground (Creator/Maintainer)
Pawn Packages (Creator/Maintainer)
# Services/Platforms
forum.open.mp (Forum Manager)
open.mp (Member)
Pawn Playground (Creator/Maintainer)
Pawn Packages (Creator/Maintainer)


