Conversion from VB to Cpp question
I have came across some parts of code that seems odd to me, and since it has been more than 20 years since I have even seen Basic code I cannot remember how this works.
Here is the code:
[code]
Function CheckLeak(PresLeak As Boolean) As Boolean
Dim presrange As DruckType
Dim FixtureLeak As FixtureType
Dim HighPressure As Boolean
Dim First, Second, DeltaPressure As Double
....
CheckLeak = Not PresLeak
If CheckLeak Then
[\code]
This last part is where I am a bit confussed.
This is a function, but it is getting assigned something?
Then the function is called and the return result is evaluated, this part I get.
I have seen this assignment in many parts of this code, and in order to convert the code I need to understand what this is doing.
Thanks in advance.

