You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sjasmplus does not seem to allow expressions involving strings, more specifically, the concatenation.
In my case, I am trying to produce output files with a different name that depend on an environment variable to control some localization outputs. So far, I am doing something like this:
DEFINE LANG 1
IF LANG = 1
DEFINE SNAFILE "build/zx_en.sna"
DEFINE TAPFILE "build/zx_en.tap"
ELSE
IF LANG = 2
DEFINE SNAFILE "build/zx_fr.sna"
DEFINE TAPFILE "build/zx_fr.tap"
ELSE
DEFINE SNAFILE "build/zx_es.sna"
DEFINE TAPFILE "build/zx_es.tap"
ENDIF
ENDIF
which is quite cumbersome. Rather than that, I would like to do something like this:
Suggested solution:
DEFINE LANG "ES"
DEFINE SNAFILE "build/zx_" + LANG + ".sna"
DEFINE TAPFILE "build/zx_" + LANG + ".tap"
where '+' (or any alternative operator) produces the concatenation of two strings.
Thanks!
The text was updated successfully, but these errors were encountered:
sjasmplus does not seem to allow expressions involving strings, more specifically, the concatenation.
In my case, I am trying to produce output files with a different name that depend on an environment variable to control some localization outputs. So far, I am doing something like this:
which is quite cumbersome. Rather than that, I would like to do something like this:
Suggested solution:
where '+' (or any alternative operator) produces the concatenation of two strings.
Thanks!
The text was updated successfully, but these errors were encountered: