Link to home
Start Free TrialLog in
Avatar of JRFromSoCal
JRFromSoCalFlag for Afghanistan

asked on

Lambda Expression to eval bool and then assign value to variable.

Just wondering if a lambda expression would be possible here.
Dim HasPostmarkDateVerified As String = "N"

            If (PostmarkDateVerified = True) Then
                HasPostmarkDateVerified = "Y"
            End If

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of nepaluz
nepaluz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kaufmed
A lambda doesn't make much sense here. I like nepaluz's approach more so.
Avatar of JRFromSoCal

ASKER

I thought nepaluz's solution was lambda?
Looks like a lambda, works like a lambda .... (I don't like ducks very much, but I know how one quacks!)
I guess functionally it is. When you say "lambda" in relation to .NET, I would expect something, for lack of a better example, like:

testResult(4, Function(num) num Mod 2 = 0)

Open in new window


The part that makes me think "lamba" is the usage of the keyword "Function". I've just never give If much thought as to whether or not it's a lambda  = )
Thanks guys.