[5] Is it possible to compare two String fields?

RSZ-EC

Member
Greetings!

I want to compare two String fields to assign a value to another field. I used a Composite field using the [String] function:

[String(String1=String2?Value1:Value2)]
But it doesn't work, because the function doesn't recognize String2 as a field, but as text, and only if I write "String2" in String1 field the condition returns Value1.

Is it a way to compare two Strings fields?

Thanks in advance!
 

Anti

Administrator
Staff member
Hello!
'String' function allows to compare field with constant value. If you need to compare values of two string fields and set the result of the third field depending on compare result, you can use 'Condition' field, or operations.

See sample project in attach that shows both ways.
 

Attachments

RSZ-EC

Member
Sorry, I forget to specify that I'm currently working in version 5, and as far as I know, it doesn't have a 'Condition' field. Or is it?

(...) or operations.
And please, what do you mean with "operations"? Those work in version 5?
 

Anti

Administrator
Staff member
'Condition' field and Operations are new features in Runabase 6. We don't add new features to 5th version, just fix critical bugs.
 
Top