Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Krpano 1.0.8 beta 4 IF/ELSE
Zitat
Is there documentation how can I use IF/ELSE ?
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (26. Mai 2010, 12:55)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<krpano version="1.0.8" onstart="showlog(); plugin_exists(logo); plugin_exists(no_plugin)" >
<preview type="grid(cube, 20, 20, 200, 0x4D6199, 0x94D6FF, 0x000000)" details="12" />
<plugin name="logo"/>
<action name="plugin_exists">
if(plugin[%1] !== null,
trace(----plugin %1 exist----);
trace('plugin[%1] = ',get(plugin[%1]))
,
trace(--plugin %1 does not exist--);
trace('plugin[%1] = ',get(plugin[%1]))
);
</action>
</krpano>
|
|
|
Quellcode |
1 2 3 |
<action name="check">
if(plugin[something] !== null, showtext(Something is here, infostyle););
</action>
|
|
|
Quellcode |
1 2 3 |
<action name="check">
if(plugin[something] == null, showtext(Something is here, infostyle););
</action>
|
|
|
Quellcode |
1 2 3 |
<action name="check">
if(plugin[something] !== null, showtext(Something is here, infostyle););
</action>
|
|
|
Quellcode |
1 2 3 |
<action name="check">
if(plugin[something] == null, showtext(Something is here, infostyle););
</action>
|
There was once a time when I thought "Michel" was just a pseudonym that Klaus used to visit the board anonymously.![]()
It seems that there are some ' Klaus pseudonyms ' out there
.
...Dear Diary,
Today I learned about the heretofore undocumented showlog() command. How in the heck does Michel figure this stuff out???
I has knew about the showlog() action because it is used inside the event example from Klaus
...Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com