the if.....then statement

I don’t know how to do this in XOJO, use “contains” in the if statement

[code]dim a_variable as “the big cat”

if a_variable contains “big” then
do something
end if[/code]

Use INSTR()

Your Dim statement also needs a type:

thanks guys, I’ll try it now

Dim a as string = "the big cat"
If instr(a,"big") <> 0 then
 do something
end if

When using the New Framework:

dim a as text = "the big cat"
if a.IndexOf("big") <> -1 then
  do something
end if