I have two variables and need to assign value to Variable called Date.
1). LastPrice : 100.50
2). NewPrice : 100.70
3). Date : ?
I want to apply logic like:
If there is a price change than take Date: 08/31/2024 (pre-defined date).
OR
If there is no price change than take Date: 09/01/2023 (pre-defined date).
How can I apply these logic? any help is appreciated.
The general syntax of the Ternary operator in VB.NET.
If(question, expression1, expression2)
Here question(?) is the condition if condition is true, then expression1 will be execute otherwise expression2 will be execute.