Adding value into string

(imported topic written by lmpymilk91)

Not sure how to make this come out… in my case I would like to see one of these outcomes

Then:

“foo”

Else:

“version 9.0.115.0 of OCX”

or

“version 0 of OCX”

q:if (exists file "system32\macromed\flash\flash.ocx" of windows folder) then "foo" else "version (if (exists key "HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" of registry) then version of file (value "" of key "HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" of registry as string as lowercase) else version "0") of OCX"

Thanks

(imported comment written by lmpymilk91)

OK for future searches here is how it was done

q:if (exists file "system32\macromed\flash\flash.ocx" of windows folder) then "foo" else "version " & (if (exists key "HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" of registry) then version of file (value "" of key "HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" of registry as string as lowercase) as string else "0") & " of OCX"
A: version 9.0.115.0 of OCX