ASP.NET Razor Code How to create begin with logic true in conditional statement?

I'm trying to create a logic like that returns true if values are begin-with or start-with some specific value.

For example -

I'm finding something similar to == Equality term that returns true if values are equal.

@{Year == 2014/April ? "True" : "False"}

The problem with this is Month. I want if Year == 2014 then it returns true with any month.

How can I do this? Thanks!

[Edited]

My question is clear, I want anything come's after 2014 returns true.

Jon Skeet
people
quotationmark

It sounds like you want something like:

@{Year == 2014 && Month == 4 ? "True" : "False"}

people

See more on this question at Stackoverflow