SynthMaker

SM2.0.3 IfThenElse no Not Equals

Archive · 2011 3 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

infuzion ·

I tried to use "<>" (not equals) with trog's If Then Else example, but doesn't work. The other symbol "!=" acts as Equals. I don't expect the primitive to handle "IsSquareRootOf" or other extravagant conditions, but I would think Not Equals is a standard condition test?

Suggestion: Please add Contains, StartsWith, EndsWith, for better string searching. Could use Extract & String Find, but would make it more complete...

Andrew J ·

How would the logic work for not equals? If you have multiple condition inputs, then more than one is going to satisfy the not equals condition. I guess you'd need a clear rule to determine which condition is matched (either the first or last).

stw ·

Theoretically you're right but i guess an "unequal" op wouldn't make so much sense. It would only change between two results . If an input is unequal (true) to the first comparison it would alway stop a the first entry. If an input is equal to the first comparison it would stop at the next unequal comparison. That's the second entry. The else state couldn't sbe reached at all. So a simple selector would do the job. I hope i understood that prim correctly... 🙂

edit: Oh Andrew was first...

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.