Below is current code, which works when pulling in variable content; however, I need a dynamic message to populate based on variables. The logic works but the variable content do not populate. Any help would be greatly appreciated!
%%[
SET @idSubscriber = MOBILE_NUMBER
SET @rows = LookupOrderedRows("SMS Data", 1, "MobileNumber", "MobileNumber", @idSubscriber)
SET @RowCount = RowCount(@rows)
IF (Rowcount(@rows) > 0) THEN
VAR @ILRow, @NursePhoneNumber, @HealthPortalTiny, @MobileHealth
SET @ILRow = row(@rows,1)
SET @NursePhoneNumber = Field(@ILRow, "NursePhoneNumber")
SET @HealthPortalTiny = Field(@ILRow, "HealthPortalTiny")
SET @MobileHealth = Field(@ILRow, "MobileHealth")
ENDIF
]%%
%%[
Var @msg
IF (v(@HealthPortalTiny) == "NULL" OR v(@HealthPortalTiny) == "") THEN
SET @msg = "Health Msgs: You have a check-in call coming up! Be ready with any questions for your nurse. Call %%=v(@NursePhoneNumber)=%%. Txt STOPHEALTH to cancel."
ELSE
SET @msg = "Health Msgs: You have a call coming up! Be ready with any questions for your nurse. Log in at: %%=v(@HealthPortalTiny)=%% or call %%=v(@NursePhoneNumber)=%%. Txt STOPHEALTH to cancel."
ENDIF
]%%
%%=v(@msg)=%%