c# - ASP.NET Razor Code - How to create begin-with logic true in conditional statement? -
I am trying to make an argument as if values are starting with returns or with a specific value is triggered.
For example -
I think there is something similar to the term ==
similarity
that gives reality If the values are the same.
@ {year == 2014 / April? "True": "wrong"}
with this problem is month
. I want that if year == 2014
then it is true with any month.
How can I do this? Thanks!
[edit]
My question is clear, I want that 2014
anything will come when the return is correct.
It looks like you want something:
@ { Year == 2014 & amp; & Amp; Month == 4? "True": "wrong"}
Comments
Post a Comment