I am a begginer user, and just wanted to make a verification in an assing activity, basically to check if a string contains “< $” then if true replace “< $” by “” else replace “$” “”.
I made this :
if(strAmazonStorageCost.Contains(“< $”), strAmazonStorageCost.Replace(“< $”,“”), strAmazonStorageCost.Replace(“$”,“”)
I think my syntax is right, but getting the error: Error
ERROR Validation Error Invalid expression term ‘if’
; expected
) expected
Invalid expression term ‘,’
} expected
Even if I try anything simple like: if(n1>n2, “a”,“b”) still getting same error, not sure if is a library problem…
I am well aware Paul, I am fluent in VB.Net and C# which is why I am trying to help avoid confusion.
They are both .Net languages so both can be considered .Net syntax. You cannot shorten Vb.net to .net as it has a very different meaning.