Skip to content

How can I call a method and get the return value? #2

Open
@lifuchao

Description

@lifuchao

Hello,I have referenced this project,and I have test a simple function as follows:

Function MyTest(num As Integer)
If num > 0 Then
Console.WriteLine("input > 0")
Else
Console.WriteLine("input <= 0")
End If
return num + 10
End Function

It can parsed ok,but I'm wondering how can I call this function and get the return value?
for example:
MyTest(10),how to do it and get return value [20]

many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions