Jump to content

How to call functions in If statements?


Recommended Posts

I made a program, but it says you cannot have a func/endfunc inside of a if statement

It's like this so far

if _IsPressed ("{f1}") then
Func _Start

xxx
xxx
xxx

EndFunc
Endif

Any help on how to call it without saying Func and Endfunc that would be great!

Thanks

--

Swoonkify

Link to comment
Share on other sites

  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...